PRB: Program w/ @..SAY..GETs Exits If Press PAGE UP/PAGE DOWN (137279)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Windows 7.0
This article was previously published under Q137279 SYMPTOMS
Some developers porting code form other FoxPro versions, including MS-DOS
and Windows, are still using hard coded screen displays (@..SAY..GETs in a
.prg file).
In Visual FoxPro, you will find that the behavior is somewhat different
from version 2.x products and other XBase languages. Pressing the PAGE UP
or PAGE DOWN key while the program is running causes the program to stop,
and no validation takes place if the GET command has a Valid clause.
RESOLUTION
In the beginning of the program place this code:
ON KEY LABEL PGUP KEYBOARD "{BACKTAB}"
ON KEY LABEL PGDN KEYBOARD "{TAB}"
This will allow the program to continue normally as if the ENTER key was
pressed.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/7/2003 |
---|
Keywords: | kbprb KB137279 |
---|
|