SmallBASIC
SmallBASIC copied to clipboard
ASCII 0 issue
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.