ReplaceString Function

Top  Previous  Next

Replace one string with another string. Useful to replace colons with commas, as an example, in the correlation matrix so you can use the GetField function.

 

Syntax

 

newString = ReplaceString( inputString, stringToReplace, stringToReplaceWith )

 

Parameters

inputString

 

the string on which

stringToReplace

 

the string to find and replace

stringToReplaceWith

 

the string to use as the replacement




newString

 

the new string with the replaced characters

 

Examples

The following examples illustrate the use of the ReplaceString  function:

 

PRINT ReplaceString( "Hello World", "Hello", "Goobye" )