GxVariant |
The GX Variant Control is a dedicated ActiveX control for manipulating gxVariant data type.
The gxVariant data type has the following important features:
The root gxVariant can be accessed by the following properties: Int, Double, String, Date, Variant, Id, Size, Type, NItems, Nchildren.
To manipulate a child gxVariant, first it must be located by the SetRefPath function and then it can be accessed by the following properties: RefInt, RefDouble, RefString, RefDate, RefVariant, RefId, RefSize, RefType, RefNItems, RefNchildren.
The RefMoveUp, RefMoveDown, RefMoveNext, RefMovePrevious functions are for traversing the gxVariant tree.
To build up a tree, first call the AddChild function to add a child to the root gxVariant, then traverse to the child and call the RefAddChild function to add child to child, and so on. The RemoveChild, RefRemoveChild functions are for deleting a child or child of child.
The CreateList, AddListItem, RefCreateList, RefAddListItem functions can be used to turn a gxVariant into a list. The RemoveListItem, RefRemoveListItem functions are for deleting a list item from the root gxVariant, or from a child gxVariant.
The SetArray and SetRefArray functions are for importing and converting an array of Variants into an array of integers.
The gxvar and RefGxvar properties are for passing gxVariant object between GxVariant controls.
Name | Description |
---|---|
![]() | gxVariant types |
Name | Description |
---|---|
![]() | Set/get the root gxVariant as a Date value. |
![]() | Set/get the root gxVariant as a Double value. |
![]() | Set/get the root gxVariant as an object. |
![]() | The Id of the gxVariant. |
![]() | Set/get the root gxVariant as an Integer value. |
![]() | [Read only] The number of the children of the root gxVariant. |
![]() | [Read only] The number of items included in the root gxVariant. |
![]() | Set/get the referenced gxVariant as a byref Date. |
![]() | Set/get the referenced gxVariant as a byref Double. |
![]() | [Read only] Get the referenced gxVariant as an object. |
![]() | The Id of the referenced gxVariant. |
![]() | Set/get the referenced gxVariant as a byref Integer. |
![]() | [Read only] The number of the children of the referenced gxVariant. |
![]() | [Read only] The number of items included in the referenced gxVariant. |
![]() | [Read only] The size of the referenced gxVariant. |
![]() | Set/get the referenced gxVariant as a byref String. |
![]() | [Read only] The type of the referenced gxVariant. |
![]() | Set/get the referenced gxVariant as a byref Variant. |
![]() | [Read only] The Size of the root gxVariant. |
![]() | Set/get the root gxVariant as a String value. |
![]() | [Read only] The Type of the root gxVariant. |
![]() | Set/get the root gxVariant as a Variant value. |
Name | Description |
---|---|
![]() | Add a child to the root gxVariant. |
![]() | Add a list item to the root gxVariant. |
![]() | Recreate the root gxVariant as list. |
![]() | Get the error code and the error message of the last error. |
![]() | Get the error code of the last error. |
![]() | Get the error message of the last error. |
![]() | Add a child to the referenced gxVariant. |
![]() | Add a list item to the referenced gxVariant. |
![]() | Recreate the referenced gxVariant as list. |
![]() | Move down the reference along a given path. |
![]() | Move the reference to the next index. |
![]() | Move the reference to the previous index. |
![]() | Move up the reference to the parent of the current referenced gxVariant. |
![]() | Remove a child of the referenced gxVariant. |
![]() | Remove a list item from the referenced gxVariant. |
![]() | Remove a child from the root gxVariant. |
![]() | Remove a list item from the root gxVariant. |
![]() | Recreate the root gxVariant as an integer array converted from a Variant array. |
![]() | Recreate the referenced gxVariant as an integer array converted from a Variant array. |
![]() | Reference a gxVariant by path. |