[Gambas-user] What's happening with True and False string conversions?
Benoît Minisini
g4mba5 at gmail.com
Sat May 29 00:34:20 CEST 2021
Le 28/05/2021 à 23:30, John Anderson a écrit :
> Either I haven't had enough coffee today, or Gambas is doing something
> weird, or ??.
>
> This is Gambas 3.16.90 May 27 2021 build - just updated from PPA this
> morning. On Linux Cinnamon 20.1
>
> There is something confusing going on here - I can print True or False
> expressions directly from Print keyword, and I get "True" and "False"
> output strings as expected. But if I try to print more than one Boolean
> expression per Print line: when I expect a "True" I just get a "T". And
> False starts becoming nothing - just empty string. CStr(expression) is
> weird too.
>
> Screenshot, system info, simple demo code and project are attached.
>
> What the heck? Am I driving off into the weeds here?
>
> Thanks
>
> -John
>
You must be careful with the functions that use localization and those
who do not.
Str(), Val() and Print use localization.
CStr() and automatic conversion do not.
Regards,
--
Benoît Minisini
More information about the User
mailing list