RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.varArray Constant

Represents a Variant that holds dynamic array data.

Pascal
varArray = $2000;
C++
varArray = 0x2000;

The VarType routine returns a TVarType value that describes the current data type used to hold the contents of a Variant data type. The data type is a 16 bit value, split into a high order 4 bits and a low order 12 bits. The low order bits determine the basic data type, such as varDouble, varSmallInt.  

The high order bits represent meta data types varArray and varByRef.  

Logically And varArray with a Variant to determine if a Variant holds array data.  

Use VarArrayCreate to generate an array Variant

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!