ReplaceString()

Syntax

String$ = ReplaceString(String$, StringToFind$, StringToReplace$ [, Mode [, StartPosition]])
Description
Try to find any occurrences of 'StringToFind$' in the given 'String$' and replace them with 'StringToReplace$'. An optional 'StartPosition' parameter can be specified to tell at which position the replace should start. First 'StartPosition' index is 1.

'Mode' can be a combination of the following values:
  1: Case insensitive search (A=a). By default the search is case sensitive.
  2: In place replacing. This means that the string is replaced directly in the memory. The 'StringToFind$' and
  'StringToReplace$' parameter must have the same length ! This is a dangerous option, for advanced users only.
  The advantage is the very high speed of the replacement. When using this option, the result of ReplaceString() has
  to be ignored (and not affected to something, as this is the string passed in parameter which is changed).

Supported OS

All

<- RemoveString() - String Index - Right() ->