10 6 9 AsNumber

LANSA Technical

10.6.9 AsNumber

Asnumber will convert a string to a number. If the string contains characters that cannot be converted, the application will end with a run-time error.

Use IsNumber to test the string before using AsNumber.

Input Parameters

None

Example

If (#String.isNumber)

 

#number := #string.AsNumber

 

else

 

* Error processing

 

Endif

 

Ý 10.6 Alphanumeric/String Intrinsic Functions