wwUtils::ReplaceText

This function is a combination of STREXTRACT() and STRTRAN() that allows you to search for a string between a pair of delimiters and then replace that string with another value. Replaces the text between the matches.

ReplaceText(lcSource,lcStart,lcEnd,lcReplace)

Return Value

Replaced text string or the original string if no match was found.

Parameters

lcSource
The source string to work on

lcStart
The starting delimiter to find

lcEnd
The end delimiter to find

lcReplace
The replacement string that replaces the matched content without the delimiters.

Remarks

This is a global function in wwUtils not a method.


See also:

Class wwUtils

© West Wind Technologies, 1996-2019 • Updated: 12/22/08
Comment or report problem with topic