Replace Command Not Working?

Blitz3D Forums/Blitz3D Beginners Area/Replace Command Not Working?

QuickSilva(Posted 2004) [#1]
name$="blitz basic"

Graphics 640,480
SetBuffer BackBuffer()
HidePointer
Why doesn`t the following work? I can see nothing wrong with it but the string printed has none of its letters replaced. b`s should be replaced by a`s so why is the string still "blitz basic" as oppossed to "alitz aasic"?

While Not KeyHit(1)
Cls

Replace(name$,"b","a")

Text 10,10,name$
Flip
Wend
End


Koriolis(Posted 2004) [#2]
name = Replace(name$,"b","a")


QuickSilva(Posted 2004) [#3]
Doh! My mistake. Thanks for the help.

Jason.