version 6.0
Get menu item mark (menu; menuItem{; process}) String
Parameter | Type | Description | |
menu | Number | Menu number | |
menuItem | Number | Menu item number | |
process | Number | Process reference number | |
Function result | String | Current menu item mark |
Description
The Get menu item mark command returns the check mark of the menu item whose menu and item numbers are passed in menu and menuItem.
If you omit the process parameter, Get menu item mark applies to the menu bar for the current process. Otherwise, Get menu item mark applies to the menu bar for the process whose reference number is passed in process.
If the menu item has no mark, Get menu item mark returns an empty string.
Note: See discussion of check marks on Macintosh and Windows in the description of the command SET MENU ITEM MARK.
Example
The following example toggles the check mark of a menu item:
SET MENU ITEM MARK($vlMenu;$vlItem;Char(18)*Num(Get menu item mark($vlMenu;$vlItem)=""))
See Also