RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System::TVarArray Record

This is the descriptor type for safe arrays.

Pascal
TVarArray = packed record
  DimCount: Word;
  Flags: Word;
  ElementSize: Integer;
  LockCount: Integer;
  Data: Pointer;
  Bounds: TVarArrayBoundArray;
end;
C++
struct TVarArray {
  Word DimCount;
  Word Flags;
  Integer ElementSize;
  Integer LockCount;
  Pointer Data;
  TVarArrayBoundArray Bounds;
};

A variable of type System::TVarArray stores all the necessary information about a safe array. The meaning of each field in the System::TVarArray record is given in the following table.

Field 
Meaning 
DimCount 
The number of dimensions of the safe array. 
Flags 
Flags providing different kind of information about the safe array. 
ElementSize 
The size in bytes of a safe array element. 
LockCount 
The number of times the safe array has been locked. 
Data 
The actual data in the safe array. 
Bounds 
The bounds of the safe array corresponding to all its dimensions. This is an array of System::TVarArrayBoundArray type. 

 

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