VARTYPE Property


PLBCMP GUI Only

 

The VARTYPE property identifies the VARIANT data type as allowed for conversion between PLB data types and applicable Windows variant types. The property uses the following format:

VARTYPE={value}

Note the following:

  1. VARTYPE may be used in CREATE, SETPROP, or GETPROP statements of a VARIANT object.

  2. {value} is a decimal number, a Numeric Variable, a Character Variable, an AUTOMATION object, a VARIANT object, an Expression, or a keyword as defined in PLBEQU.INC. The supported values and keywords are:

  3.  

    Value

    Keyword

    The VARIANT type is ...

    0

    $VT_EMPTY

    nothing.

    1

    $VT_NULL

    SQL style null.

    2

    $VT_I2

    two byte signed integer.

    3

    $VT_I4

    four byte signed integer.

    4

    $VT_R4

    four byte real.

    5

    $VT_R8

    eight byte real.

    6

    $VT_CY

    currency.

    7

    $VT_DATE

    date

    8

    $VT_BSTR

    OLE automation string.

    9

    $VT_DISPATCH

    Idispatch FAR *

    10

    $VT_ERROR

    SCODE.

    11

    $VT_BOOL

    Boolean - True = -1, False = 0

    12

    $VT_VARIANT

    VARIANT FAR *

    13

    $VT_UNKNOWN

    unknown type.

    16

    $VT_I1

    one byte signed integer

    17

    $VT_UI1

    unsigned character.

    18

    $VT_UINT16

    unsigned 16 bit integer

    18

    $VT_UI2

    two byte unsigned integer

    19

    $VT_UINT32

    unsigned 32 bit integer

    19

    $VT_UI4

    four byte unsigned integer

    20

    $VT_INT64

    sixty four bit signed integer

    20

    $VT_I8

    eight byte signed integer

    21

    $VT_UINT64

    sixty four bit signed integer

    21

    $VT_UI8

    eight byte unsigned integer

    0x2000

    $VT_ARRAY

    Variant Array

     

  4. The $VT_ARRAY value can be added with the other VARIANT types above to generate a variant array. Only single dimension variant arrays may be created.

  5. The $VT_ARRAY value cannot be used in a SETPROP operation. This will cause a runtime O132 error to occur.

 

 

See Also: Object Properties, Object IO Instructions, Object Definitions

 



PL/B Language Reference VARPTR Property VARVALUE Property