You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Datetime Intrinsic Functions - AsNumber Method
Return the variable as a number
Member of Datetime Intrinsic Functions (PRIM_LIBI.IDateTimeIntrinsics)

Parameters

Name

Type

Data Type

Description

Result

*Result (Optional)

Decimal

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 exmaple the result will be a numeric representation of the date time
#Result := #Variable.AsNumber(CCYYMMDDHHMMSS)

See also

All Component Classes
Technical Reference

  • No labels