DOCUMENT:Q120963 03-AUG-2000 [foxpro] TITLE :PRB: ON KEY LABEL CMD+ Causes "Syntax Error" PRODUCT :Microsoft FoxPro PROD/VER:MACINTOSH:2.5x,2.6a,3.0b OPER/SYS: KEYWORDS:kberrmsg ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft FoxPro for Macintosh, versions 2.5x, 2.6a - Microsoft Visual FoxPro for Macintosh, version 3.0b ------------------------------------------------------------------------------- SYMPTOMS ======== Using the command "ON KEY LABEL CMD+" (without the quotation marks), causes a "Syntax Error" error message. CAUSE ===== The ON KEY LABEL command does not support the Macintosh COMMAND (CMD) key. RESOLUTION ========== Use "ON KEY LABEL CTRL+" (without the quotation marks) instead. FoxPro for Macintosh treats the COMMAND key like the CTRL key, so pressing either the COMMAND or the CTRL key will activate the ON KEY LABEL CTRL command. For example, to display a WAIT window when either CTRL+A or COMMAND+A are pressed, type the following in the Command window: ON KEY LABEL CTRL+A WAIT WINDOW 'Test' STATUS ====== This behavior is by design. MORE INFORMATION ================ Steps to Reproduce Behavior --------------------------- In the Command window, type the following: ON KEY LABEL CMD+A WAIT WINDOW 'Test' Press COMMAND+A. Note that a "Syntax Error" message is displayed. Additional query words: VFoxMac FoxMac 2.50b 2.50c errmsg err msg control akz ====================================================================== Keywords : kberrmsg Technology : kbHWMAC kbOSMAC kbVFPsearch kbAudDeveloper kbFoxproSearch kbFoxPro260aMac kbVFP300bMac Version : MACINTOSH:2.5x,2.6a,3.0b ============================================================================= 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. Copyright Microsoft Corporation 2000.