Visual Basic |
---|
Public Function VariantValue( _ ByVal Simplify As Boolean _ ) As Variant |
For non-array data, this method always returns the same result as Value.
The value returned by an attribute’s default Value property is itself always a variant, but for reasons of space and efficiency, the elements of an array are of a fixed, non-variant type. This method, on the other hand, guarantees that the array elements will themselves also be variants. This is not very efficient, but is necessary for some scripting languages (e.g. VBScript & MatLab), which can ONLY handle variants.
To further cope with the deficiencies in some languages, which cannot cope with degenerate array dimensions (1..1), this method will eliminate such dimensions completely if the Simplify parameter is TRUE.