Get menu item mark

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 6.0


Get menu item mark (menu; menuItem{; process}) String

ParameterTypeDescription
menuNumberMenu number
menuItemNumberMenu item number
processNumberProcess reference number
Function resultStringCurrent 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

SET MENU ITEM MARK.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next