|
From: Maurizio la C. <m.l...@gm...> - 2014-10-03 18:28:00
|
Hi Alain,
sorry. I wrongly edited the code.
Try with:
@ 15,84 GET COMBOBOX cRegistre ITEMS aRegistres STYLE WS_TABSTOP SIZE
490, 25
AFAIK, you'll find the selected item value in the cRegistre variable.
BR
Maurizio
Il 03/10/2014 20:07, Alain Aupeix ha scritto:
> Le 03/10/2014 19:06, Maurizio la Cecilia a écrit :
> > @ 15,84 GET COMBOBOX oRegistre STYLE WS_TABSTOP SIZE 490, 25
> GeneTools.prg(407) Error E0030 Syntax error "syntax error at '@'"
>
> It can't be like you said as (even it's miss-named), oRegistre is a variable
> More, where are the purposed choices ?
> For me there were aRegistres which is an array.
>
> To be more rigourous I ought to write it like that:
>
> // initialize the variable with the first value ot the array
> cRegistre=aRegistres[1]
> ...
>
> @ 15,32 GET COMBOBOX oCombo3 ITEMS aRegistres STYLE WS_TABSTOP ;
> SIZE 290, 25 ON CHANGE {|| cRegistre:=oCombo3:GetText()}
>
> oCombo3:GetText()
>
> Here is perhaps the problem, as I don't know which function, or just value to use:
>
> oCombo3:GetText()
> oCombo3:Text
> other syntax that I don't know ...
>
> 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)
> --------------------------------------------------------------------------------
|