SWITCH Property


PLBCMP GUI Only

 

The SWITCH property uses a Bootstrap 5 'switch class' to show a toggle switch for a web CHECKBOX object. The property uses the following format:

SWITCH={value}

Note the following:

  1. SWITCH may be used in CREATE, SETPROP, or GETPROP statements of a CHECKBOX object.

  2. The SWITCH property is only used when a CHECKBOX object is created as a web object using the WebView mode.

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

  4.  

    Value

    Keyword

    The object is displayed as a ...

    0

    $OFF

    checkbox (default)

    1

    $ON

    toggle switch

     

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

     



    PL/B Language Reference SUBMENU Property SYSMENU Property