getGlobals()
The function queries existing global variables.
Synopsis
int getGlobals(dyn_string &globaleVariableNames, dyn_int
&globaleVariableTypes);
Parameters
Parameter | Description |
---|---|
globaleVariableNames | Names of the global variables, for example, "v1" |
globaleVariableTypes | Types of global variables |
Return value
In the event of an error, the function returns -1 otherwise, 0.
Error
Missing or incorrect parameters.
Description
The function queries existing global variables.
Example
main()
{
dyn_string globaleVariableNames;
dyn_int globaleVariableTypes;
addGlobal("v1", ANYTYPE_VAR );
addGlobal("v2", DYN_FLOAT_VAR );
addGlobal("v3", TIME_VAR );
getGlobals(globaleVariableNames, globaleVariableTypes);
DebugN( globaleVariableNames);
//v1, v2, v3 displayed
}
Assignment
Miscellaneous functions
Availability
CTRL