| 
 Purpose  | 
 Determine the internal data type of the data stored in a Variant variable.  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 Syntax  | 
 numericvar = VARIANTVT(vrntvar)  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 Remarks  | 
 The VARIANTVT function returns the internal VT data type stored in the Variant. The entire range of %VT_ prefixed values are documented by the OLE (COM) specification and are available in WIN32API.INC. The most important values in this limited context 
 include %VT_EMPTY (=0) and %VT_BSTR (=8), since most of the others are 
 
 If a Variant contains a complete array, the Variant type is determined by adding the base type to the array modifier. That is, for a string array, it would be %VT_BSTR plus %VT_ARRAY (= &H2008). Quad arrays within Variants are not supported by most versions of Windows. The result from VARIANTVT can be used to see whether such an array was created properly.  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 See also  | 
 DIM, Just what is COM?, OBJECT, LET (with Variants), VARIANT#, VARIANT$, What is an object, anyway?  |