GetElement Method (VARIANT)
8.7, PLBCMP GUI Only
The GetElement method retrieves the specified VARIANT from a VARIANT array. The method uses the following format:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
object
Required. A VARIANT object that has been created as a $VT_ARRAY.
return
Optional. A VARIANT that receives the specified array element.
index
Required. A Numeric Variable that specifies the zero-based indexed value for the variant element in the first dimension of the VARIANT array.
index1 - index5
Optional. Decimal numbers or Numeric Variables that specify the zero-based indexed value for the variant elements in each respective dimension of the array.
Flags Affected: EOS, OVER, ZERO
Note the following:
If there is an error, the returned VARIANT will have a VARTYPE of $VT_EMPTY.
The ZERO, OVER and EOS Condition Flags are always cleared.
The CREATE VARIANT operation can only create a one dimensional VARIANT array. This method supports multiple dimensions for a VARIANT array that has been created by a control or another third party application.
See Also: Method Syntax, VARIANT Methods
![]() |