Represents a Variant that points to another variable.
varByRef = $4000;
varByRef = 0x4000;
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 low order bits determine the basic data type, such as varDouble, varSmallInt.
The high order bits represent meta data types varArray and varByRef.
In essence, a varByRef variant is a pointer. The data type of the variable it points to is determined in the low order bits.
Logically And varByRef with a Variant to determine if a Variant is a pointer.
TVarType
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|