bug in replace$()

BlitzPlus Forums/BlitzPlus Programming/bug in replace$()

Lazze(Posted 2004) [#1]
For some reason I can't get Replace$() to work in an include-file. It works fine in the main program, but in the include it does nothing else than returning the original string. Has anybody else encountered this problem/bug???


Koriolis(Posted 2004) [#2]
Include file are just pasted in place before the compiling starts, so it's pretty unlikely it can cause this sort of problem. Could you post some code snippet reproducing your problem?


Lazze(Posted 2004) [#3]
How embarrasing :o) MY MISTAKE - forget I ever mentioned it!!!!

Replace$(string$,a$,b$) does nothing - obviously
string$=Replace$(string$,a$,b$) does what it is supposed to do - obviously.

EMBARRASING!!!

Maybe I should get some sleep now :o)


Kanati(Posted 2004) [#4]
Sleep young padawan. Let the force guide your dreams to blitz glories yet to come. :)