Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  


Removes the prefix from text.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Text 6.1 Yes Yes Yes Yes Yes

MBS( "Text.RemovePrefix"; Text; Prefix { ; CaseSensitive } )


Parameter Description Example value
Text The text to check. ">Hello World"
Prefix The prefix to remove. ">"
CaseSensitive Optional
Pass 1 to check case sensitive.
Default is 0 for case insensitive.


Returns text.


Removes the prefix from text.


Removes prefix:

MBS( "Text.RemovePrefix"; ">Hello World"; ">")

Creates directory and shows error:

Set Variable [$r; Value:MBS("Files.CreateDirectory"; $path)]
If [MBS("IsError")]
    Show Custom Dialog ["Failed to create directory"; MBS("Text.RemovePrefix"; $r; "[MBS] ")]
    Exit Script []
End If

See also

Example Databases

Created 28th February 2016, last changed 28th February 2016

Text.RemovePostfix   -   Text.ReplaceAll

Feedback: Report problem or ask question.

MBS FileMaker tutorial videos