Replace Question


tssing

Recommended Posts

Actually it works fine. Replace is a function, not a statement, so you can't just do:

replace(strtest,"h","w")

you have to assign, print, or do something with it. If you want to put it back into strtest, then you need:

strtest = replace(strtest,"h","w")

this is true for all the string functions (and most others)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.