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

ID: Q96357

The information in this article applies to:

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:

Last Reviewed: April 17, 1995