Microsoft KB Archive/120963

= PRB: ON KEY LABEL CMD+ Causes "Syntax Error" =

Article ID: 120963

Article Last Modified on 10/15/2003

-

APPLIES TO


 * Microsoft FoxPro 2.6a Professional Edition for Macintosh
 * Microsoft Visual FoxPro 3.0b for Macintosh

-



This article was previously published under Q120963



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.



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 KB120963

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.