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.
Additional query words: VFoxWin
Keywords: KB149402