Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

String Intrinsic Functions - AsNumber Method

Panel
bgColor#2c3c4c

Return the variable as a number

Member of String Intrinsic Functions (PRIM_LIBI.IStringIntrinsics)

Parameters

Name

Type

Data Type

Description

Result

*Result (Optional)

Decimal

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.

Use IsNumber to test the variable before using AsNumber.

Example

     If (#Variable.isNumber)
#Result := #Variable.AsNumber
Endif


See also

All Component Classes

Technical Reference