Boolean Intrinsic Functions - AsNumber Method

Return the variable as a number

Member of Boolean Intrinsic Functions (PRIM_LIBI.IBooleanIntrinsics)

Parameters

Name

Type

Data Type

Description

Result

*Result (Optional)

Integer

Resulting 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.

True will return a value of 1, while False will return a value of 0.

Example

     #Result := #Variable.AsNumber

See also

All Component Classes

Technical Reference