Compatible Unicode Intrinsic Functions - IsNumber Method

Test if the variable is a number

Member of Compatible Unicode Intrinsic Functions (PRIM_LIBI.ICompatibleUnicodeIntrinsics)


NameTypeData TypeDescription
Result*Result (Optional)BooleanTrue if the variable is a valid number


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.


In this example, #Variable is tested before being assigned to #Result
If (#Variable.IsNumber)
   #Result := #Variable.AsNumber

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2