DOC: MENU() & PAD() Examples Cause Error Message

Last reviewed: January 8, 1997
Article ID: Q126871
The information in this article applies to:
  • Microsoft FoxPro for Windows, version 2.6a
  • Microsoft FoxPro for Macintosh, version 2.6a

SUMMARY

Copying the example program for the MENU() function from the Graphical online Help File, pasting it into a new program file, saving the program file with the suggested name (MENUEXAM.PRG) and then running it causes the following error message:

   Unrecognized phrase/keyword in command
      <Cancel> <Suspend> <Ignore>

This error message is caused by a space character inside the parentheses of the MENU() and PAD() functions on the following line of the program:

   ON SELECTION MENU _MSYSMENU ;
       DO choice IN menuexam WITH PAD( ), MENU( )

Remove the space that is between the parentheses in the PAD() and MENU() functions to eliminate the error message.

This documentation error has been fixed in Visual FoxPro 5.0 for Windows.

MORE INFORMATION

This problem only occurs when using the Graphical online Help files, FOXHELP.HLP, in FoxPro for Windows and FoxPro for Macintosh. The MENU() function examples in the .DBF-style online Help files for FoxPro do not contain the space between the parentheses of these two functions. The problem does not occur in FoxPro for MS-DOS or UNIX because they don't use Graphical Style Help files.

The following manuals also contain the space between the parentheses of the MENU() and PAD() functions:

FoxPro for MS-DOS and Windows, "Language Reference," page L3-648 FoxPro for Macintosh "Language Reference," page 526


KBCategory: kbprg kbdocerr kbdocfix
KBSubcategory: FxotherDochelp
Additional reference words: docerr 2.60a errmsg 5.00


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: January 8, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.