<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > BuiltIn Functions > Variant functions > VARIANTVT |
Description
Returns a numeric value indicating the internal data type of the data stored in a VARIANT variable.
Syntax
n = VARIANTVT (AVariantVariable)
Returns
Number
Parameters
Name |
Type |
Optional |
Meaning |
AVariantVariable |
Variable |
No |
Remarks
Possible return values:
Value |
Equate |
Meaning |
0 |
%VT_EMPTY |
0 or Empty string |
1 |
%VT_NULL |
Null string |
2 |
%VT_I2 |
Integer |
3 |
%VT_I4 |
Long-integer |
4 |
%VT_R4 |
Single |
5 |
%VT_R8 |
Double |
6 |
%VT_CY |
Currency |
7 |
%VT_DATE |
Date |
8 |
%VT_BSTR |
Dynamic string |
9 |
%VT_DISPATCH |
Interface reference |
10 |
%VT_ERROR |
Error code |
11 |
%VT_BOOL |
Boolean |
12 |
%VT_VARIANT |
Variant |
13 |
%VT_UNKNOWN |
|
16 |
%VT_I1 |
Byte |
17 |
%VT_UI1 |
Byte |
18 |
%VT_UI2 |
Word |
19 |
%VT_UI4 |
DWord |
20 |
%VT_I8 |
Quad (signed) |
21 |
%VT_UI8 |
Quad (unsigned) |
22 |
%VT_INT |
Integer |
23 |
%VT_UINT |
Word |
24 |
%VT_VOID |
|
25 |
%VT_HRESULT |
COM result code |
26 |
%VT_PTR |
Pointer |
27 |
%VT_SAFEARRAY |
VB Array |
28 |
%VT_CARRAY |
|
29 |
%VT_USERDEFINED |
|
30 |
%VT_LPSTR |
ANSI string |
31 |
%VT_LPWSTR |
Unicode string |
36 |
%VT_RECORD |
|
64 |
%VT_FILETIME |
|
65 |
%VT_BLOB |
|
66 |
%VT_STREAM |
|
67 |
%VT_STORAGE |
|
68 |
%VT_STREAMED_OBJECT |
|
69 |
%VT_STORED_OBJECT |
|
70 |
%VT_BLOB_OBJECT |
|
71 |
%VT_CF |
|
72 |
%VT_CLSID |
Class ID |
&H1000 |
%VT_VECTOR |
|
&H2000 |
%VT_ARRAY |
Array |
&H4000 |
%VT_BYREF |
Restrictions
See also
VARIANT$, VARIANT#, VARIANTVT$
Examples