Example: sapgui_grid_is_checkbox_selected

The following example uses sapgui_grid_is_checkbox_selected to check the state of a box before selecting it.

if (!sapgui_grid_is_checkbox_selected("Is box not set?",
        "usr/cntlBCALVC_TOOLBAR_D100_C1/shellcont/shell",
        "0", 
        "CONNID",
        BEGIN_OPTIONAL, 
            "AdditionalInfo=sapgui1019", 
        END_OPTIONAL)
            sapgui_grid_set_checkbox("Set box",
            "usr/cntlBCALVC_TOOLBAR_D100_C1/shellcont/shell",
                "0", 
                "CONNID",
                "True",
                BEGIN_OPTIONAL, 
                   "AdditionalInfo=sapgui1019", 
                END_OPTIONAL);