tssing Posted June 6, 2008 Share Posted June 6, 2008 var.strtest = chr(21) + "hello" If over situation Why I can't use Replace function??? Link to comment Share on other sites More sharing options...
AzeoTech Posted June 6, 2008 Share Posted June 6, 2008 To do what? Link to comment Share on other sites More sharing options...
tssing Posted June 6, 2008 Author Share Posted June 6, 2008 replace(strtest,"h","w") It will be error Link to comment Share on other sites More sharing options...
AzeoTech Posted June 6, 2008 Share Posted June 6, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.