8 27 10 VarIsNumber

LANSA Technical

8.27.10 VarIsNumber

VarIsNumber returns a Boolean True if the Subject variant can be converted to a number, otherwise it returns a Boolean False.

VarIsNumber( Subject )
 

Example

This if statement tests if the value is a string:

If Cond(VarIsNumber( #TheValue ) *EQ True)
Use Builtin(MESSAGE_BOX_SHOW) With_Args(OK OK Information 'Variant Type' 'The value is a decimal.')
Endif
 

Ý 8.27 Variant Handling