replace()

Function group Execute on client Platform(s)
String YES All

Syntax

replace(source-string,target-string,replacement-string)

replace(source-string,target-string,replacement-string[,case-sensitive=kTrue])

Description

Replaces the first occurrence of the target-string, within the source-string, with the replacement-string. Returns the resulting string.

If case-sensitive is kTrue (the default) or is omitted, a case-sensitive replace is performed. If passed as kFalse, a case-insensitive replace is performed.

Example

Calculate lString as replace('Omnis SofTware LTd',chr((84),'t')
# returns 'Omnis Software LTd'