次の方法で共有


SET MARK OF Command

Specifies a mark character for menu titles or menu items, or displays or clears the mark character.

SET MARK OF MENU MenuBarName1
   TO lExpression1-or-SET MARK OF POPUP MenuName1
   TO lExpression3-or-SET MARK OF BAR nMenuItemNumber OF MenuName2
   TO lExpression4

Parameters

  • MENU MenuBarName1
    Specifies the name of the menu bar for which the mark character is specified, displayed or cleared.
    • TO lExpression1 Displays or clears the mark character for every menu title on the menu bar. If the logical expression lExpression1 evaluates to true (.T.), the mark character is displayed beside every menu title. The mark character is cleared from every menu name if lExpression1 evaluates to false (.F.).
  • POPUP MenuName1
    Specifies the name of the menu for which the mark character is specified, displayed, or cleared.
    • TO lExpression3 Displays or clears the mark characters for all the menu items. If lExpression3 evaluates to true (.T.), the mark characters are displayed. If lExpression3 evaluates to false (.F.), the mark characters are cleared.
  • BAR nMenuItemNumber OF MenuName2
    Specifies the number of the menu item (and the name of the menu containing the menu item) for which the mark character is specified, displayed, or cleared.
    • TO lExpression4 Displays or clears the mark character for the menu item. If lExpression4 evaluates to true (.T.), the mark character is displayed. If lExpression4 evaluates to false (.F.), the mark character is cleared.

Remarks

You cannot specify a mark character for menu titles or menu items. The mark character is always a check mark. However, you can use SET MARK OF to display or clear the check mark for menu titles or menu items.

You cannot mark menu items created with any of the DEFINE POPUP PROMPT clauses (FIELD, FILES, or STRUCTURE).

Use MRKPAD( ) to determine if a menu title has a mark character displayed, and use MRKBAR( ) to determine if a menu item has a mark character displayed.

For an example using SET MARK OF, see CNTBAR( ).

See Also

CNTBAR( ) | CNTPAD( ) | DEFINE BAR | DEFINE MENU | DEFINE PAD | DEFINE POPUP | MRKBAR( ) | MRKPAD( )