Syntax:gosub strreplace {search string} {replace string} {string}
DescriptionReplace all occurrences of the {search string} in the {string} with the {replace string}. The result is stored in the #RESULT variable
Example:gosub strreplace #spc _ #PROPERTY
set %prop #RESULT
The SUB:sub strreplace
while %1 in %3
{
STR LEN %1
set %search_len #STRRES
STR POS %3 %1
set %position #STRRES
STR DEL %3 %position %search_len
set %3 #STRRES
STR INS %3 %2 %position
set %3 #STRRES
}
return %3
P.S.
TM if you like it you can move it in the Script Snippets forum