Variant.IsNumeric

From Xojo Documentation

Method

Variant.IsNumeric() As Boolean

Supported for all project types and targets.

Returns True if the Variant is a numeric data type or contains a string with a numeric value.

For example, if the Variant contains a string describing a number, such as "8", then IsNumeric returns True.