Usage and Syntax for SET MARK OF Command

Last reviewed: June 27, 1995
Article 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] <expN1> TO <expC1>|<expL1>

where <expN1> is the respective menu or popup name, <expC1> is the mark character, and <expL1> 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] <expN2> OF <expN3> TO <expC2>|<expL2>

where <expN2> is the popup name for popups or bar number for bars, <expN3> is the pad or popup name, <expC2> is the mark character, and <expL2> 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 "Application," 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 "*"
     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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.