Click or drag to resize

IsNumeric Function

Determine if a value is a numeric.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.08
Syntax
 FUNCTION IsNumeric(
	uValue AS USUAL
) AS LOGIC
View Source

Parameters

uValue
Type: Usual
The value to examine.

Return Value

Type: Boolean
TRUE if the value is a numeric; otherwise, FALSE.

Return Value

Type: Boolean
TRUE if the value is a LONG, FLOAT, IN64 or DECIMAL data type; otherwise, FALSE.
Remarks
IsNumeric() is equivalent to UsualType(<uValue> = LONG .OR. UsualType(<uValue> = FLOAT.
Examples
This example uses IsNumeric() to determine the formatting to be used:
X#
IF IsNumeric(uValue)
        ? Str3(uValue, 7, 2)
ELSE
        ? uValue
ENDIF
See Also