Global Variable Definition

Top 

Global variables

Example:

int Global_flag;

Global variables are defined on the same level as functions, that is, they are not local in any block. They are initialized with 0, unless other initial value is explicitly defined. The scope is all script files currently being executed. Global variables should be described in all the script files that can access them.

Static variables

Example:

static int File_flag;

Constant. The scope is the script file, in which the variable is defined. The static variables shall be described before they are used in the file for the first time.

Variable Initialization

External Object Description