Time Intrinsic Functions - AsNumber Method

Return the variable as a number

Member of Time Intrinsic Functions (PRIM_LIBI.ITimeIntrinsics)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)IntegerResulting number
Format*InputEnumerationFormat 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

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2