User Tools

Site Tools


getitemchecked_return_toggle_item_status_.htm
Navigation:  ABC Library Reference > PopupClass > PopupClass Methods >====== GetItemChecked (return toggle item status) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

GetItemChecked( name )

blk2blue.jpg

GetItemChecked Returns the status of a toggle menu item.
name A string constant, variable, EQUATE, or expression containing the menu item name. The AddItem, AddItemMimic, or AddMenu methods set the item name.

The GetItemChecked method returns one (1) if the item is checked (on) and zero (0) if the item is not checked (off). The SetItemCheck method sets the state of a toggle menu item.

Implementation:

The name parameter accepts up to 1024 characters.

Return Data Type:     BYTE

Example:

IF PopupMgr.Ask() = 'Disable'            !if Disable item selected

 IF PopupMgr.GetItemChecked('Disable')   !if item is checked/on

  PopupMgr.SetItemCheck('Disable',False) ! toggle it off

  ENABLE(?Save)                          ! take appropriate action

 ELSE                                    !if item is not checked/off

  PopupMgr.SetItemCheck('Disable',True)  ! toggle it on

  DISABLE(?Save)                         ! take appropriate action

 END

END

See Also:     AddItem, AddItemMimic, AddMenu, SetItemCheck

getitemchecked_return_toggle_item_status_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1