Microsoft KB Archive/156059

= PRB: Single Letter SCX Name Not Permitted in ON KEY LABEL =

Article ID: 156059

Article Last Modified on 10/15/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q156059



SYMPTOMS
The following error occurs when you use any of the first ten characters of the alphabet (a-j) as a single letter SCX name and an ON KEY LABEL command to reference the form object:

"Unrecognized Command Verb"



WORKAROUND
Change the name of the form so it uses a different letter or has multiple characters in the name.



STATUS
This behavior is by design.



MORE INFORMATION
The first ten characters of the alphabet (a-j) are not supported as SCX names that can be referenced by the ON KEY LABEL command; these characters are reserved for dBASE compatibility. However, if you use any alphabet letter after "j," or any other multiple letter name, it will work properly.

Steps to Reproduce Behavior
 Create a form, and save it as g.scx . Add a couple of Textboxes to the form.  In the Init Event of the form, put the following code: ON KEY LABEL F4 g.text2.setfocus  Run the form.

Note that the error occurred with "Unrecognized Command Verb."

Additional query words: kbdse VFoxWin

Keywords: KB156059

-

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

© Microsoft Corporation. All rights reserved.