Name

IsNumeric Function

Class

Microsoft.VisualBasic.Information

Syntax

IsNumeric(expression)
expression (required; any expression)

Return Value

Boolean

Description

Determines whether expression can be evaluated as a number

Rules at a Glance

If the expression passed to IsNumeric evaluates to a number, True is returned; otherwise, IsNumeric returns False.

Programming Tips and Gotchas

If expression is a date or time, IsNumeric evaluates to False.

Get VB.NET Language in a Nutshell, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.