REPLACE$ and CHR$(0)

Previous topic - Next topic

MrTAToad

This code :

Code (glbasic) Select
a$=CHR$(10)+CHR$(13)+CHR$(0)+"J"
a$=REPLACE$(a$,CHR$(0),"M")
a%=INSTR(a$,"J")
DEBUG a%+"\n"


crashes the program...

Kitty Hello

you naughty boy.... ;)

Moru

INSTR() does not search behind the NULL either :-)