GRID - HEADER / CABECERA

HMG en Español

Moderator: Rathinagiri

User avatar
tonton2
Posts: 465
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: GRID - HEADER / CABECERA

Post by tonton2 »

franco wrote: Sun Jan 26, 2025 6:25 pm SALINETAS24, I like simple. This is how I would handle this. Not sure if it would work for you.

Code: Select all

program
private g2h := 0                     
Define win
Define Grid Grid_2
ONHEADCLICK { {|| g2h:=1,msgbox(g2h),g2h:=0 }, {|| g2h:=2,something(),g2h:=0 }}
Merci beaucoup
But ,I didn't understand how to use it in my program (how to put this line in the GRDStock grid)
L'Algerie vous salut
Y.TABET
franco
Posts: 882
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: GRID - HEADER / CABECERA

Post by franco »

Do you understand it now.
Just put one of these for however many grid headers you have.
{|| g2h:=2,something(),g2h:=0 }
g2h is grid header #, something is procedure you want to run, when finished g2h:=0 set g2h value back to zero.
You need one for every header. The number of headers you have.
If you don`t need to use one column still add {|| " " } in its place.
All The Best,
Franco
Canada
User avatar
tonton2
Posts: 465
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: GRID - HEADER / CABECERA

Post by tonton2 »

franco wrote: Wed Jan 29, 2025 7:04 am Do you understand it now.
Just put one of these for however many grid headers you have.
{|| g2h:=2,something(),g2h:=0 }
g2h is grid header #, something is procedure you want to run, when finished g2h:=0 set g2h value back to zero.
You need one for every header. The number of headers you have.
If you don`t need to use one column still add {|| " " } in its place.
merci je vais esssayer
L'Algerie vous salut
Y.TABET
User avatar
tonton2
Posts: 465
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: GRID - HEADER / CABECERA

Post by tonton2 »

Voila comment j'ai utiliser la recherche dynamique,il a été compillé avec HMG.3.4.6
This is how I used the dynamic search, in French, it was compiled with
Attachments
ENSTOCK.rar
(1.23 MiB) Downloaded 22 times
L'Algerie vous salut
Y.TABET
User avatar
serge_girard
Posts: 3333
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: GRID - HEADER / CABECERA

Post by serge_girard »

ça marche tres bien!
Serge
There's nothing you can do that can't be done...
User avatar
tonton2
Posts: 465
Joined: Sat Jun 29, 2013 1:26 pm
Location: Algerie
Contact:

Re: GRID - HEADER / CABECERA

Post by tonton2 »

Bonsoir,
(dans ce programme , lorsque je fais le produit aLigne[6] :=aLigne[3]*aLigne[4], dans le Grid_Temp la cellule reste toujours à 0 , alors que mzginfo(aLigne[6] me donne le produit exact , comment faire pour que laigne[6]:=aLigne[3]*aLigne[4], soit affiché dans la cellule appropriée)
traduction en anglais dans " grid_temp"
Dans ce programme, lorsque j'effectue le calcul aLigne[6] := aLigne[3] * aLigne[4], la cellule dans Grid_Temp reste 0, même si MsgInfo(aLigne[6]) donne le bon produit. Comment puis-je m'assurer que aLigne[6] := aLigne[3] * aLigne[4] est affiché dans la cellule appropriée. in Grid_temp
Attachments
Grille_Grid (1).rar
(1.31 MiB) Downloaded 18 times
L'Algerie vous salut
Y.TABET
Post Reply