VarType

<< Click to Display Table of Contents >>

Navigation:  Data Type Functions >

VarType

Description

Returns a value indicating the subtype of a variable.

 

Syntax

VarType(VarName)

 

The varname argument can be any variable.

Return Values

The VarType function returns the following values:

 

Constant

Value

Description

vbEmpty

   0

Empty (uninitialized)

vbInteger

   3

Integer

vbString

   8

String

vbObject

   9

Automation object

vbBoolean

  11

Boolean