Replace
When dealing with global parameters use this command as a split function for multiple inputs for one global parameter.
Compatibility
Available as of IDEA version 10.0
Syntax
Replace(expression as String, find as String, replacewith as String)
Parameter
Expression
String expression containing substring to replace
Find
Substring being searched for
Replacewith
Replacement substring
Return Value
String including the replacement
Example:
Sub Main()
Dim SimpleCommands As Object
Dim newString As String
Set SimpleCommands = SmartContext.SimpleCommands
'Replace substring "bc" with "v" in string "abcdefghcd"
newString = SimpleCommands.Replace ("abcdefghcd", "bc", "v")
'New string = "avdefghcd"
'Release object
Set SimpleCommands = Nothing
End Sub