I'm trying to emulate a serial I/O sitution where my program receives messages that begin with a CHR$(0) character.
To emulate this, I'm building a string variable with a line like this:
var$ = chr$(0) + chr$(129) + chr$(6) + chr$(255)
However, when I do a LEN on it like:
lenvar = LEN(var$)
I get 3 instead of 4. Replacing chr$(0) with any other character works fine. Why cant I build a string with a null character in it? I certainly hope I can read in a serial I/O with just such a string!
Any suggestions?
Signatures are a waste of bytes.