8.3.13 VarType

VarType returns the type of the value current stored in the Subject variant.

     VarType( Subject )

Possible results are:

  • VarNull

  • VarEmpty

  • VarInteger

  • VarDouble

  • VarString

  • VarDecimal

  • VarBoolean

  • VarComponent

Example

This example checks whether the value returned from a grid is a string:

     If Cond(VarType( #TheValue ) *EQ VarString)
Use Builtin(MESSAGE_BOX_SHOW) With_Args(OK OK Information 'Variant Type' 'The value is a string.')
Endif

8.3 Variant Handling

  • No labels