Get the handle of a variable
Get the handle of a variable by using the GetVariableById method or the GetVariableByName method.
Examples
Example 1:
1. Create the variable Variable01. The identifier of the variable is VB01. A comment (in qComment) and a definition (in qDefinition) are set.
The client sends:
The engine returns:
The variable is created and has 2 as a handle.
2. Get the handle of the variable, by using the identifier of the variable (qId is VB01). Check that the handle is 2.
The client sends:
The engine returns:
The variable has 2 as a handle.
Example 2:
1. Create the variable Variable01. The identifier of the variable is VB01. A comment (in qComment) and a definition (in qDefinition) are set.
The client sends:
The engine returns:
The variable is created and has 2 as a handle.
2. Get the handle of the variable, by using the name of the variable (qName is Variable01). Check that the handle is 2.
The client sends:
The engine returns:
The variable has 2 as a handle.