Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5    Statistic    FMM    Blog  

Text.RemovePrefix

Removes the prefix from text.

Component Version macOS Windows Linux Server iOS SDK
Text 6.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Text.RemovePrefix"; Text; Prefix { ; CaseSensitive } )   More

Parameters

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

Result

Returns text.

Description

Removes the prefix from text.

Examples

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

Blog Entries

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


Text.RemovePostfix - Text.ReplaceAll

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos

Start Chat