DOC: MENU() & PAD() Examples Cause Error Message (126871)
The information in this article applies to:
- Microsoft FoxPro for Windows 2.6a
- Microsoft FoxPro for Macintosh 2.6a
This article was previously published under Q126871 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
Modification Type: | Major | Last Reviewed: | 10/15/2003 |
---|
Keywords: | kbdocfix KB126871 |
---|
|