|
From: Alain A. <ala...@wa...> - 2016-08-08 10:58:23
|
Le 08/08/2016 à 12:38, Alexander S.Kresin a écrit :
> Alain Aupeix пишет:
>
>> @ 45,42 GET COMBOBOX oVille VAR cVille ITEMS aVilles STYLE WS_TABSTOP SIZE 170, 25
> > ...
>> hwg_MsgInfo("You have choosen : "+ltrim(cVille)+chr(10)+...
> The error message is correct in this case:
> the combobox isn't TEXT type, so, the variable 'cVille' is a NUMBER
> and an attempt to Trim it causes an error. You initialize the 'cVille'
> with a string value - that's why if you click Ok before any changes,
> this initial value is unchanged and no error occurs.
> So, if you want your combobox variable to have a string type value,
> define the combobox as TEXT (or EDIT).
ok, so if I don't add TEXT or EDIT, it returns the range of the choice
in the array ?
Thanks
A+
--
------------------------------------------------------------------------
Alain Aupeix
http://jujuland.pagesperso-orange.fr/
http://pissobi-lacassagne.pagesperso-orange.fr/
------------------------------------------------------------------------
U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2016-07-18 18:32) |
Hw.Gui 2.19-6 (2549)
------------------------------------------------------------------------
|