AppCtrlScript

MAY Computer

Help

REPLACE

Applies to  

AppCtrlScript (Module: wmACScr1.dll)

Group  

String

See also  

STRREDUCE, STRREMLEADEND

Replaces all occurrences of a specific substring in a given source string with a new string. The result is stored in a script variable.

Syntax

REPLACE <VariableName>, <Source>, <Search>,  <New>[, <CaseSense>] 

Part

Description

<VariableName> Name of the script variable where to store the result.
<Source> Source string.
<Search> The old string which is searched for.
<New> New string the search string should be replaced with.
<CaseSense> Optional 0 or 1, if 1 then the search string is case sensitive. The default is 0 (case insensitive search).