RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.varTypeMask Constant

Defines a mask for filtering out the meta data part of a Variant data type.

Pascal
varTypeMask = $0FFF;
C++
varTypeMask = 0x0FFF;

System

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 high order bits give a meta data type (varArray and varByRef). The low order bits determine the basic data type, such as varDouble, varSmallInt. Use varTypeMask to mask out the meta data so as to be able to determine the basic data type of a Variant

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!