Variant
toArray() [Variant class]
Returns the value of the variant as an array.
Source | Result |
---|---|
VariantArray | unchanged |
other | conversion fails |
This method takes an ok
parameter passed by reference, which is filled in as
true
if the data is already this type.
// PROTOTYPES
VariantArray toArray(bool& ok) const;
See value, as, and to for when to use the toXXX() vs. other accessors.