Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  


Appends text to a variable.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
FM Variables 9.5 Yes Yes Yes Yes Yes
MBS( "FM.VariableAppend"; Name; Value )   More


Parameter Description Example value
Name the name of the variable "test"
Value the value to add to the variable 5


Returns new value or error.


Appends text to a variable.
Internally does similar to FM.VariableGet to read value, then adds given parameter and stores like FM.VariableSet, all in one operation, so no other script or calculation can get between.
Creates variable, if it's not existing yet.


Test append function:

Let ( [

r1 = MBS( "FM.VariableAppend"; "hello"; "Line 1" & ¶ );
r2 = MBS( "FM.VariableAppend"; "hello"; "Line 2" & ¶ );
r3 = MBS( "FM.VariableAppend"; "hello"; "Line 3" & ¶ )

]; MBS( "FM.VariableGet"; "hello" ) )

See also

Blog Entries

Release notes

Created 28th October 2019, last changed 28th October 2019

FM.VariableAdd   -   FM.VariableClear

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins