Siebel VB Language Reference > VB Language Reference >

IsNumeric Function


This standard VB function is used to determine whether the value of a variable is numeric.

Syntax

IsNumeric(expression)

Argument
Description

expression

Any valid expression

Returns

-1 (TRUE) if expression has a data type of Numeric, 0 (FALSE) otherwise.

Usage

IsNumeric returns -1 (TRUE) if the expression is of vartypes 2-6 (numeric) or a string that can be interpreted as a number.

If numeric input is required, IsNumeric can be used to determine whether the value input by the user is a valid number before converting the input to a numeric data type for processing.

See Also

IsDate Function
IsEmpty Function
IsNull Function
VarType Function

Siebel VB Language Reference