Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: StrClean versus StrReplace
a = "" a = StrClean("Have a nice day","nice","rotten",@TRUE,1) a = StrClean(a,"day","night",@TRUE,1) Message("", a) Drop(a)
I think the function you want is StrReplace, which replaces all occurrences of a sub-string with another.
a = "Have a nice day" a = StrReplace(a ,"nice","rotten") a = StrReplace(a,"day","night") Message("", a) Drop(a)
Article ID: W14597
Filename: StrClean Function.txt
File Created: 2000:10:16:11:17:40
Last Updated: 2000:10:16:11:17:40