You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Unicode Intrinsic Functions - IsNumber Method

Test if the variable is a number

Member of Unicode Intrinsic Functions (PRIM_LIBI.IUnicodeIntrinsics)

Parameters

Name

Type

Data Type

Description

Result

*Result (Optional)

Boolean

True if the variable is a valid number

Details

IsNumber will return True if the variable can be converted to a valid numeric value.

IsNumber will often be used before AsNumber to better handle potential errors.

Example

In this example, #Variable is tested before being assigned to #Result

     If (#Variable.IsNumber)
#Result := #Variable.AsNumber
Endif


See also

All Component Classes

Technical Reference

  • No labels