Hi Eros,
I found a problem in core or parsing.
Try following:
[code=thinbasic]
uses "Console"
local a AS ASCIIZ * 256 = "Ciao"
local b AS ASCIIZ * 256 value "Ciao"
PRINTL "A =", a
PRINTL "B =", b
waitkey
[/code]
For a I get nothing, for b I get correct value. So it seems VALUE is not the same as equal sign in this case.
Thanks,
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
I think that problem is related to every fixed string.
Parser try to compute 256 = "Ciao" as a numeric statement resulting in logical expression always evaluating to %FALSE so zero.
I'm trying to get a way to avoid this behave.
Thanks for finding it.
Eros
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Bookmarks