Substitute()

Category: Text

Syntax: Substitute ( text; searchString; replaceString )


Parameters:

textAny text string or expression that returns a text string.

searchStringAny text string or expression that returns a text string.

replaceStringAny text string or expression that returns a text string.

Data type returned: Text

Description:

Returns a text string in which all instances of searchString in the text parameter are replaced with the replaceString.

Multiple substitutions may occur in the same Substitute() function:

 Substitute ("This is a test"; ["i"; "q"]; ["s"; "$"])


returns Thq$ q$ a te$t.

The Substitute() function is case sensitive.

Examples:

Function

Results

Substitute ("Happy Anniversary!"; "Anniversary"; "Birthday")

Returns Happy Birthday!.

Substitute ("This is a test"; "i"; "q")

Returns Thqs qs a test.








FileMaker 8 Functions and Scripts Desk Reference
FileMaker 8 Functions and Scripts Desk Reference
ISBN: 0789735113
EAN: 2147483647
Year: 2004
Pages: 352
Simiral book on Amazon

Flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net