Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Variable.ClearAll

Clears all variables.

Component Version macOS Windows Linux Server iOS SDK
Variable 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Variable.ClearAll" )

(old name: FM.VariableClearAll)

Parameters

none

Result

Returns OK or error.

Description

Clears all variables.

Examples

Try the functions:

"Set: " & MBS("Variable.Set"; "test"; "test") & ¶ &
"Get: " & MBS("Variable.Get"; "test") & ¶ &
"Clear: " & MBS("FM.VariableClearAll") & ¶ &
"Get again: " & MBS("Variable.Get"; "test")

Example result:
Set: OK
Get: test
Clear: OK
Get again: [MBS] Variable not found.

See also

Blog Entries

This function checks for a license.

Created 3th June 2015, last changed 15th April 2025


Variable.Clear - Variable.Exists