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 Specifications
FileMaker 8 Product Line
Specifications and Storage Limits
Field Types and Import/Export Formats
: Calculation Functions
Working with Calculations Primer
Calculation Signatures
Calculation Functions
: Custom Functions
Custom Functions Primer
Useful Custom Functions
: Script Steps
Scripting Primer
Script Step Reference
: Quick Reference
FileMaker Error Codes
FileMaker Keyboard Shortcuts
FileMaker Network Ports
FileMaker Server Command Line Reference
FileMaker XML Reference
: Other Resources
Where to Go for More Information