Is Replace() broke?
BlitzMax Forums/BlitzMax Beginners Area/Is Replace() broke?
| ||
This isn't working for me and I'm not sure why:Local this:String = "hello there" Replace(this,"hello","go") Print this edit Ugh...have to do a: this = Replace( this,"hello","go" ) |
| ||
You might be better off using the string 'replace' method rather than the old retro string 'replace' function. Check out language > strings in the Blitzmax help. eg. Local t:String="***** HELLO *****" Print t.Replace( "*","!" ) 'replaces all "*" with "!" |
| ||
Thx for the tip Bill. |