DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Method: IsNumeric for VBS

Method: IsNumeric for VBS

Specifies whether an expression is a number.

vIsNumeric = Object.IsNumeric(expression)
ObjectVBS
Object with this method. You do not need to specify this object.
expressionVariant
Specifies any expression.
vIsNumericVariant
The method IsNumeric returns True if the expression is a number. Otherwise the method returns False.

The following example checks whether a variable is a number:

Dim MyVar
MyVar = 4711
Call MsgBox(IsNumeric(MyVar)) ' Returns True
MyVar = "4711"
Call MsgBox(IsNumeric(MyVar)) ' Returns True
MyVar = "No.4711"
Call MsgBox(IsNumeric(MyVar)) ' Returns False

See Also

Objects Overview

Related Topics

IsArray | IsDate | IsEmpty | IsNull | IsNumeric | IsObject | TypeName | VarType

In This Section
Was this information helpful?