Time Intrinsic Functions - AsNumber Method
Return the variable as a number
Member of Time Intrinsic Functions (PRIM_LIBI.ITimeIntrinsics)
Parameters
Name | Type | Data Type | Description |
|---|---|---|---|
Result | *Result (Optional) | Integer | Resulting number |
Format | *Input | Enumeration | Format of the number |
Details
AsNumber will convert a variable to a number. If the variable contains characters that cannot be converted, the application will end with a run time error.
Example
In this example the will be a numeric representation of the time
If (#Variable.isNumber)
#Result := #Variable.AsNumber(HHMMSS)
Endif