Text only
|
Text with Images
GLBasic forum
Main forum => Bug Reports => Topic started by: MrTAToad on 2010-Aug-17
Title:
REPLACE$ and CHR$(0)
Post by:
MrTAToad
on
2010-Aug-17
This code :
Code
(glbasic)
Select
Expand
a$=CHR$(10)+CHR$(13)+CHR$(0)+"J"
a$=REPLACE$(a$,CHR$(0),"M")
a%=INSTR(a$,"J")
DEBUG a%+"\n"
crashes the program...
Title:
Re: REPLACE$ and CHR$(0)
Post by:
Kitty Hello
on
2010-Aug-17
you naughty boy.... ;)
Title:
Re: REPLACE$ and CHR$(0)
Post by:
Moru
on
2010-Aug-17
INSTR() does not search behind the NULL either :-)
Text only
|
Text with Images