Page 2 of 2

Re: GRID - HEADER / CABECERA

Posted: Mon Jan 27, 2025 11:10 am
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)

Re: GRID - HEADER / CABECERA

Posted: Wed Jan 29, 2025 7:04 am
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.

Re: GRID - HEADER / CABECERA

Posted: Wed Jan 29, 2025 9:24 am
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

Re: GRID - HEADER / CABECERA

Posted: Fri Aug 15, 2025 1:16 pm
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

Re: GRID - HEADER / CABECERA

Posted: Sun Aug 17, 2025 11:49 am
by serge_girard
ça marche tres bien!
Serge

Re: GRID - HEADER / CABECERA

Posted: Sun Aug 17, 2025 1:53 pm
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