Adding MESSAGE Clause in Menu Builder in FP for MS-DOS

Last reviewed: April 17, 1995
Article ID: Q96357
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, and 2.5a

The Menu Builder in FoxPro for MS-DOS does not offer the ability to add a MESSAGE clause to menu bars, menu pads, and popups like the Menu Builder in FoxPro for Windows does.

In FoxPro for Windows, the General Options command on the Menu menu and the Options check boxes on the menu pads and menu popups allow you to add a MESSAGE clause to the menu pieces.

In FoxPro for MS-DOS, you can use the SKIP FOR clause in each of the above locations to add the MESSAGE clause. For example:

  1. In the Command window, type the following:

          CREATE MENU test
    

  2. From the Menu menu, choose Quick Menu.

  3. On one of the menu pads, choose the Options button.

  4. In the Options dialog box, select the Skip For check box.

  5. In the Expression box, type the following:

          .F. MESSAGE "This is the message"
    

    NOTE: If the Verify button is selected, the Expression Builder generates the message "Syntax Error."

  6. Choose OK in the Expression Builder and in the Options dialog box.

  7. From the Program menu, choose Generate, and then choose the Generate button in the dialog box.

  8. In the Command window, type the following:

          DO test.mpr
    


Additional reference words: FoxDos 2.00 2.50 2.50a mpr
KBCategory: kbprg
KBSubcategory:


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: April 17, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.