Action
Replace all occurrences of a single character in a string.
Syntax
REPLACE string , old , new
Remarks
string |
The source string to change. |
old |
A string constant or byte that specifies the character to replace. |
new |
The new character. Also a string constant or a byte. |
Example
Dim S as String * 12
s = "Hello"
REPLACE s , "e" , "a" ' now we got some dutch :-)
Print s ' should print Hallo