D2000 VBApi - Work with the current object value
The interface D2000 VBApi allows to get the current object value and modify it. Before getting the value or its modification, it is necessary to open the particular object (VBApiOpenObject).
Getting the value of an object is performed by calling the procedure VBApiGetObjectValue.
Setting the value of an object is performed alike by calling the procedure VBApiChangeObjValue. It is possible to set a value of the object of User variable type.
Access to an item of an object of Value array type
To get the items' values of Value array type object use the function VBApiGetArrObjectValue. Compared to the function VBApiGetObjectValue, there are two extra parameters - index of required value and the indicator of exceeded array size (index).
Access to an item of an object of Structured variable type
To get the items' values of Structured variable object use the function VBApiGetRecItemObjectValue. Compared to the function VBApiGetArrObjectValue, there is one extra parameter to enter the name of an item of the structure itemName.
Related pages:
Pridať komentár