[Gambas-user] What's happening with True and False string conversions?
Bruce Steers
bsteers4 at gmail.com
Fri May 28 23:41:41 CEST 2021
You must use Str(Value) to get a non string value converted to string.
On Fri, 28 May 2021, 22:31 John Anderson, <johna at starflightinc.com> wrote:
> 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
>
>
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210528/f46c9469/attachment.htm>
More information about the User
mailing list