Microsoft KB Archive/98926

{| = Usage and Syntax for SET MARK OF Command =
 * width="100%"|

ID: Q98926

The information in this article applies to:


 * Microsoft FoxPro for Windows, versions 2.5 and 2.5a
 * Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, and 2.5a

SUMMARY
The SET MARK OF command is used to place a mark character before a pad or option in user-defined menus and/or popups. A mark character is a single character that is placed to the left of a menu bar pad or popup option. This mark character may be used to indicate that a certain condition exists, for example, an option that is controlled by the pad is on or off, or an option is available for use.

MORE INFORMATION
The syntax of the SET MARK OF command for menus and popups is

SET MARK OF [MENU|POPUP]  TO | where  is the respective menu or popup name,  is the mark character, and  is a logical value to toggle the mark on or off. The syntax for menu pads or menu bars (options) is

SET MARK OF [PAD|BAR]  OF  TO | where  is the popup name for popups or bar number for bars,  is the pad or popup name,  is the mark character, and  is a logical value to toggle the mark on or off. For example, to place an asterisk (*) in front of the first bar of a menu popup called &quot;Application,&quot; do the following.

DEFINE MENU mainmenu DEFINE PAD APPLICATION OF mainmenu PROMPT '\<Application' ON SELECTION PAD APPLICATION OF mainmenu DO defpop ACTIVATE MENU mainmenu

PROC defpop DEFINE POPUP appop MARGIN DEFINE BAR 1 OF appop PROMPT '\<Customer Viewer' DEFINE BAR 2 OF appop PROMPT '\<Invoice Viewer' SET MARK OF BAR 1 OF appop .T.    SET MARK OF BAR 1 OF appop TO &quot;*&quot; SET MARK OF BAR 2 OF appop TO CHR(182) SET MARK OF BAR 2 OF appop .T.    ON SELECTION POPUP appop WAIT WIND PROMPT ACTIVATE POPUP appop Additional reference words: FoxDos FoxWin 2.50 2.00 2.50a KBCategory: kbprg KBSubcategory: FxprgGeneral
 * }