Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

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

Any VARIANT variable or VARIANT array element

 

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

 

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software