| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Variable.Append
Appends text to a variable.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Variable | 9.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Variable.Append"; Name; Value ) More
(old name: FM.VariableAppend)
Parameters
| Parameter | Description | Example |
|---|---|---|
| Name | the name of the variable | "test" |
| Value | the value to add to the variable | 5 |
Result
Returns new value or error.
Description
Appends text to a variable.Internally does similar to Variable.Get to read value, then adds given parameter and stores like Variable.Set, all in one operation, so no other script or calculation can get between.
Creates variable, if it's not existing yet.
Examples
Test append function:
Let ( [
r1 = MBS( "Variable.Append"; "hello"; "Line 1" & ¶ );
r2 = MBS( "Variable.Append"; "hello"; "Line 2" & ¶ );
r3 = MBS( "Variable.Append"; "hello"; "Line 3" & ¶ )
]; MBS( "Variable.Get"; "hello" ) )
Example result:
Line 1
Line 2
Line 3
r1 = MBS( "Variable.Append"; "hello"; "Line 1" & ¶ );
r2 = MBS( "Variable.Append"; "hello"; "Line 2" & ¶ );
r3 = MBS( "Variable.Append"; "hello"; "Line 3" & ¶ )
]; MBS( "Variable.Get"; "hello" ) )
Example result:
Line 1
Line 2
Line 3
See also
Release notes
- Version 15.2
- Added Variable.AppendJSON and Variable.PopJSON functions.
- Added Variable.AppendValue and Variable.PopValue functions.
Blog Entries
- Additional variable levels in FileMaker with MBS Plugin
- New functions of the MBS Plugin Version 9.5
- MBS FileMaker Plugin, version 9.5pr5
This function checks for a license.
Created 28th October 2019, last changed 16th April 2025