Field-Map Scripting

3.4.3 Using Field-Map global variables

Using Field-Map global variables


Sometimes it is useful to publish information so that it is available for another script or during the next execution of the same script. To achieve this, it is possible to store a value in an INI file or to use a dedicated data table in the project. However, the scripting engine provides a more convenient way - you just need to define a named global variable and this variable becomes visible among all the scripts until FieldMap is closed or until the variable is explicitly removed.

Global variables are of a type variant, so they can hold any of the basic data types.


See also:

Accessing Field-Map data within a script; Using Field-Map predefined variables; Using Field-Map global variables; Disabling events; Referencing scripts


See also:

SetGlobalVariable; GetGlobalVariable; GlobalVariableExists; RemoveGlobalVariable; RemoveGlobalVariables; Value


Example