Skip to content

VbVarType

Variant subtype codes returned by the VarType function. Most calls return a single value from the table below. Arrays are reported as vbArray added to the element subtype --- for example, an array of Long returns vbArray + vbLong = 8195.

ConstantValueDescription
vbEmpty0Empty (uninitialized).
vbNull1Null (no valid data).
vbInteger2Integer.
vbLong3Long integer.
vbSingle4Single-precision floating-point number.
vbDouble5Double-precision floating-point number.
vbCurrency6Currency value.
vbDate7Date value.
vbString8String.
vbObject9Object reference.
vbError10Error value.
vbBoolean11Boolean value.
vbVariant12Variant (used only with arrays of variants).
vbDataObject13A data access object.
vbDecimal14Decimal value.
vbByte17Byte value.
vbLongLong20LongLong integer (64-bit only).
vbUserDefinedType36Variant containing a user-defined type.
vbArray8192Array. Always added to another value when returned.

twinBASIC and LOGO copyright of "WaynePhillipsEA" author