String Intrinsic Functions - IsNumberStrict Method

Test if the variable is strictly a number where sign must be leading

Member of String Intrinsic Functions (PRIM_LIBI.IStringIntrinsics)

Parameters

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

Details

IsNumberStrict only differs from IsNumber handling in relation to + and - signs.  A value with a sign preceding numbers (e.g.-1234578) will return True but an embedded sign (e.g. 123-4578) will return FALSE.

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

Refer to IsNumber for more lenient handling of numbers.

Example


If Cond(#std_descs.IsNumberStrict)
#std_num := #std_descs.AsNumber
Endif

See also

All Component Classes

Technical Reference

EPC 150060 - August 2024