Time Intrinsic Functions - AsNumber Method

Return the variable as a number

Member of Time Intrinsic Functions (PRIM_LIBI.ITimeIntrinsics)


Name Type Data Type Description
Result *Result (Optional) Integer Resulting number
Format *Input Enumeration Format of the number


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.


In this example the will be a numeric representation of the time
If (#Variable.isNumber)
   #Result := #Variable.AsNumber(HHMMSS)

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020