TmGetVarMainName Function
Returns the $MAIN$ level name of a variable.
Usage
var_name = TmGetVarMainName(tool_name, local_variable)
Parameters
tool_name—A string containing the unique name of a VDA Tool.
local_variable—The local variable for which you want the $MAIN$ level name.
Returned Value
var_name—The $MAIN$ level name of the local variable.
Keywords
NoCreate—If nonzero, the function does not create a new $MAIN$ variable, but just returns the variable name.
Root—A string containing the base for the name of the $MAIN$ variable.
Discussion
If the variable does not exist on the $MAIN$ level, a new $MAIN$ level variable is created, and its name is returned.