![]() |
Another string related problem (*solved*) - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15) +---- Thread: Another string related problem (*solved*) (/showthread.php?tid=588) |
Another string related problem (*solved*) - LCD - 05-10-2014 Let me demonstrate this nasty bug... Code: sub printerPutString(x as ubyte,y as ubyte,attribute as ubyte,char$ as string) This does not work correctly, but it *should* work. print len strg$ is 15, but in procedure the char$ length is calculated with 0 lchars. It works if I change the code to this: Code: sub printerPutString(x as ubyte,y as ubyte,attribute as ubyte,char$ as string) Re: Another string related problem - LCD - 05-19-2014 It looks like it is a problem with strings and SUB... Re: Another string related problem - boriel - 05-20-2014 LCD Wrote:It looks like it is a problem with strings and SUB...I see. Probably local / parameter string var$. Will check it. Thanks ![]() Re: Another string related problem - LCD - 05-20-2014 boriel Wrote:No problem. Thank you for looking into it.LCD Wrote:It looks like it is a problem with strings and SUB...I see. Probably local / parameter string var$. Will check it. Thanks Re: Another string related problem - boriel - 06-08-2014 LCD Wrote:I think It's fixed. Please, download Version 1.4.0-s1876, and tell me if it works.boriel Wrote:No problem. Thank you for looking into it.LCD Wrote:It looks like it is a problem with strings and SUB...I see. Probably local / parameter string var$. Will check it. Thanks Re: Another string related problem - LCD - 06-08-2014 boriel Wrote:I think It's fixed. Please, download Version 1.4.0-s1876, and tell me if it works.I'm telling you that it works. Thank you! |