PRB: INKEY() May Return Same ASCII Values for Different Keys (138558)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q138558 SYMPTOMS
Using INKEY() to trap for a keystroke can sometimes lead to unexpected
results. For example, INKEY() will return the same value, 19, for the LEFT
ARROW key and ALT+R. This effect may be altered by using the following
command before using the INKEY():
SET COMPATIBLE DB4
RESOLUTION
Use the SET COMPATIBLE DB4 command immediately before you use the INKEY()
function. Then use the SET COMPATIBLE OFF command after using INKEY(). This
may have side effects. Please see SET COMPATIBLE DB4 in the Help file.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 2/11/2000 |
---|
Keywords: | KB138558 |
---|
|