共用方式為


MRKBAR( ) Function

Determines whether a menu item on a user-defined or Microsoft Visual FoxPro system menu is marked.

MRKBAR(cMenuName, nMenuItemNumber | cSystemMenuItemName)

Return Values

Logical

Parameters

  • cMenuName
    Specifies the name of the menu containing the menu item. The menu can be a Visual FoxPro system menu (such as _MFILE, MEDIT, or _MDATA).

  • nMenuItemNumber
    Specifies the number of a menu item in a user-defined menu. A menu item's number is specified when the menu item is created with DEFINE BAR.

  • cSystemMenuItemName
    Specifies the name of a Visual FoxPro system menu item. For example, the following command displays a logical value specifying if the New menu item on the File menu is marked.

    ? MRKBAR('_MFILE', _MFI_NEW)
    

Remarks

Use SET MARK OF to mark or unmark a menu item.

If the specified menu item is marked, MRKBAR( ) returns true (.T.); otherwise, MRKBAR( ) returns false (.F.).

For an example of using MRKBAR( ), see CNTBAR( ).

See Also

MRKPAD( ) | SET MARK OF | SET MARK TO