Microsoft KB Archive/149402

= PRB: F1 Key Does Not CLEAR READ in Visual FoxPro for Windows =

Article ID: 149402

Article Last Modified on 9/30/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition

-



This article was previously published under Q149402



SYMPTOMS
If a READ command is in effect in FoxPro 2.x for Windows or FoxPro 2.x for MS-DOS at the time the F1 key is pressed, the READ command clears. Otherwise, by default, pressing the F1 key invokes Help. The F1 key doesn't perform a CLEAR READ command in Visual FoxPro for Windows under the same circumstances.



WORKAROUND
You'll need to modify applications written in FoxPro 2.x for Windows or FoxPro 2.x for MS-DOS that depend on the F1 function key to perform a CLEAR READ command to make them do the same thing in Visual FoxPro for Windows.

Use an ON KEY LABEL assignment to force the F1 key to perform a CLEAR READ command. For example, add the following line to the beginning of the program listed in the "More Information" section, and run the program again: ON KEY LABEL F1 CLEAR READ



STATUS
This behavior is by design.



Steps to Reproduce Behavior
  Create and run the following program: cMytest="" DEFINE WINDOW test FROM 1,1 TO 10,20 ACTIVATE WINDOW test @ 2,1 GET cMytest SIZE 1,10 READ  Press the F1 key, and Help will pop up.

Additional query words: VFoxWin

Keywords: KB149402

-

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

© Microsoft Corporation. All rights reserved.