Substitute

Substitute (String,Old,New)
Substitute wiil scan a string to see if it contains the substring Old
and replace it with New. If UpperCaseCompare is set to True then case is
ignored in the comparison.
Example:
Var St
St = 'ABCDEFABC'
Substitute(St,'ABC','XX')
Writeln St ;returns XXDEFXX
Substitute can also be used on string arrays allowing you to do a
subststute of a string with another string over the entire string array.
Example:
Var A
ReadTextFile 'MYFILE.TXT' A
Substitute(A,'ABC','XX')
WriteTextFile 'MYFILE.TXT' A

