../pvss.htm menu.gif basics.gif

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.

Errors

Missing or incorrect parameters.

Description

The function queries existing global variables.

IconExample

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

}

Member of

Miscellaneous functions

Availability

UI, CTRL, DP

See also

    addGlobal(), getGlobalType(), globalExists()

Top Of Page

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved