ReplaceString

Typestatement
DictionaryLCB
LibraryLiveCode Builder
Syntax
replace <Pattern> with <Replacement> in <Target>
Associationscom.livecode.string
Summary

Replaces occurrences of Pattern within Target in Replacement Source:An expression which evaluates to a string.

Parameters
NameTypeDescription
Target

An expression which evaluates to a string container.

Replacement

An expression which evaluates to a string.

Example
variable tString as String
put "purple" into tString
replace "p" with "t" in tString -- tString is "turtle"
Description

Replaces each occurrence of the string Pattern in Target with Replacement.

Tagsstrings