TVarArray Type
type TVarArray = packed record DimCount: Word; Flags: Word; ElementSize: Integer; LockCount: Integer; Data: Pointer; Bounds: array[0..255] of TVarArrayBound; end;
The TVarArray
record stores the information used
to implement a Variant
array.
TVarData
stores a pointer to a
TVarArray
record when the
Variant
type includes the
varArray
bit.
Stores the number of dimensions, which is always in the range 1..64.
Feature flags that Windows uses to keep track of the array’s memory and how to manage it.
The size in bytes of each element of the array. The element size
depends on the element type, as stored in the
VType
field of TVarData
.
The lock count is usually zero. It is incremented when you call
VarArrayLock
and decremented when you call
VarArrayUnlock
. The only time you can resize an
array is when its LockCount
is zero.
A pointer to the array’s data. The actual contents of the array are stored in a single dimensional array, where the leftmost subscript varies fastest (row-major order).
An array of TVarArrayBound
records to keep track
of the bounds for each array dimension. The Bounds
member is allocated dynamically, so it actually contains
DimCount
records.
See TVarData
to see how a
Variant
stores the pointer to the
TVarArray
record.
PVarData Type, TVarArrayBound Type, TVarData Type, VarArrayCreate Function, VarArrayDimCount Function, VarArrayHighBound Function, VarArrayLock Function, VarArrayLowBound Function, VarArrayOf Function, VarArrayRedim Procedure, VarArrayRef Function, VarArrayUnlock Function, Variant Type, VarIsArray Function, VarType Function |