Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3    Statistic  

Text.RemovePrefix

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 } )

Parameters

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.
0

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


Text.RemovePostfix   -   Text.ReplaceNewline

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins