Export (0) Print
Expand All
Expand Minimize

VarType Constants for Visual Basic 6.0 Users 

The following table shows the Visual Basic 6.0 VarType constants and their Visual Basic 2005 equivalents in the VariantType Enumeration.

NoteNote

For backward compatibility, the Visual Basic 6.0 VarType constants can still be used in Visual Basic 2005. For more information, see VariantType Enumeration.

Visual Basic 6.0 Visual Basic 2005 Equivalent

vbEmpty

VariantType.Empty

vbNull

VariantType.Null

vbInteger

VariantType.Short

vbLong

VariantType.Integer

vbSingle

VariantType.Single

vbDouble

VariantType.Double

vbCurrency

VariantType.Decimal

vbDate

VariantType.Date

vbString

VariantType.String

vbObject

VariantType.Object

vbError

VariantType.Error

vbBoolean

VariantType.Boolean

vbVariant

VariantType.Variant

vbDataObject

VariantType.DataObject

vbDecimal

VariantType.Decimal

vbByte

VariantType.Byte

vbUserDefinedType

VariantType.UserDefinedType

vbArray

VariantType.Array

Community Additions

ADD
Show:
© 2014 Microsoft