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: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

FM.VariableReset

Resets the list of variables.

Component Version macOS Windows Linux Server iOS SDK
FM Variables 4.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "FM.VariableReset" )

Parameters

none

Result

Returns OK.

Description

Resets the list of variables.
You can fill again with FM.VariableSet or remove individual variables with FM.VariableClear.
Like FM.VariableClearAll, but not just removes the entries, but the whole list structure.

Examples

Try it:

"Set: " & MBS("FM.VariableSet"; "test"; "test") & ¶ &
"Get: " & MBS("FM.VariableGet"; "test") & ¶ &
"Clear: " & MBS("FM.VariableReset") & ¶ &
"Get again: " & MBS("FM.VariableGet"; "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 18th August 2014, last changed 31st January 2023


FM.VariableNames - FM.VariableSet

💬 Ask a question or report a problem