|
From: Alain A. <ala...@wa...> - 2014-10-03 21:09:12
|
Le 03/10/2014 22:59, Alain Aupeix a écrit :
> Now my problem has been solved with the help of Maurizio, I submit the
> next problem:
>
> @ 15,10 SAY cText01 SIZE 200, 22 COLOR hwg_VColor("FF0000")
> @ 15,84 GET COMBOBOX cCommune ITEMS aCommunes STYLE WS_TABSTOP SIZE
> 290, 25 TEXT
>
> @ 120,130 BUTTON "Ok" OF oDlg1 ID IDOK ;
> SIZE 100, 32 COLOR hwg_VColor("FF0000")
> @ 260,130 BUTTON "Annuler" OF oDlg1 ID IDCANCEL ;
> SIZE 100, 32 ON CLICK {||cCommune:=""}
>
> Once a combobox has been created, it returns a value : by default the
> first purposed element.
>
> To continue, or cancel, I test cCommunes length
> I tried to set cCommunes to "" when clicking Cancel
> Unfortunately, ON CLICK doesn't clear cCommunes as espected.
>
> Do you see another way ?
>
> Thanks
> A+
I found a solution in dbview:
@ 120,130 BUTTON "Ok" OF oDlg1 ID IDOK ;
SIZE 100, 32 COLOR hwg_VColor("FF0000") ;
ON CLICK {||oDlg1:lResult:=.t.}
A+
--
------------------------------------------------------------------------
Alain Aupeix
http://jujuland.pagesperso-orange.fr/
http://pissobi-lacassagne.pagesperso-orange.fr/
------------------------------------------------------------------------
U.buntu 12.04 | G.ramps 3.4.8-1 | H.arbour 3.2.0dev (2014-09-09 22;51) |
HbIDE (Rev.316) | Five.Linux (r138) | Hw.Gui (2285)
------------------------------------------------------------------------
|