SmallBASIC icon indicating copy to clipboard operation
SmallBASIC copied to clipboard

ASCII 0 issue

Open chrisws opened this issue 4 years ago • 0 comments

Please fix with ASCII 0 or chr$(0) Detected as nothing on string arrays

Example: a$=chr$(0)+chr$(1)+chr$(0)+chr$(255) count=len(a$) print "a$ length =",count for i=1 to count print "[",asc(mid$(a$,i,1)),"]", next i Result: a$ length = 2 [ 1 ] [ 255 ]

And when I use TLOAD from file to the string array ( TLOAD "binary.dat",a$,1 ).

It can contain the ASCII 0 as like on the file perfectly. And when I give to another string array or modify the current string array, all the ASCII 0 is gone.

chrisws avatar Nov 26 '20 21:11 chrisws