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)
| Name | Type | Data Type | Description |
|---|---|---|---|
| Result | *Result (Optional) | Boolean | True if the variable is strictly a valid number |
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.
If Cond(#std_descs.IsNumberStrict) #std_num := #std_descs.AsNumber Endif
EPC 150060 - August 2024