VariantType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates the type of a variant object, returned by the VarType
function.
public enum class VariantType
public enum VariantType
type VariantType =
Public Enum VariantType
- Inheritance
Fields
Name | Value | Description |
---|---|---|
Empty | 0 | Null reference. This member is equivalent to the Visual Basic constant |
Null | 1 | Null object. This member is equivalent to the Visual Basic constant |
Short | 2 |
|
Integer | 3 |
|
Single | 4 |
|
Double | 5 |
|
Currency | 6 | Currency. This member is equivalent to the Visual Basic constant |
Date | 7 |
|
String | 8 |
|
Object | 9 | Any type can be stored in a variable of type |
Error | 10 | |
Boolean | 11 |
|
Variant | 12 |
|
DataObject | 13 | DataObject. |
Decimal | 14 |
|
Byte | 17 |
|
Char | 18 |
|
Long | 20 |
|
UserDefinedType | 36 | User-defined type. Each member of the structure has a range determined by its data type and independent of the ranges of the other members. This member is equivalent to the Visual Basic constant |
Array | 8192 | Array. This member is equivalent to the Visual Basic constant |
Remarks
When you call the VarType
function, you can use enumeration members in your code in place of the actual values.
The VariantType
enumeration defines constants used to identify possible Variant
types. The following table lists the VariantType
enumeration members.