ID: Q88054
2.00 MS-DOS kbprg kbfixlist kbbuglist
The information in this article applies to:
In the Standard Version of Microsoft FoxPro version 2.0, the READKEY function returns an incorrect value.
Microsoft has confirmed this to be a problem in Microsoft FoxPro version 2.0 for MS-DOS. This problem was corrected in Microsoft FoxPro version 2.0 for MS-DOS released November 15, 1991.
The following code sample demonstrates the problem. Respond to the first GET statement with the key combination ALT+M. Respond to the second GET statement by pressing ENTER. The correct value from READKEY() is 15; in some versions of FoxPro, READKEY() returns 271.
ON KEY LABEL alt+m DO test
a = SPACE(10)
@ 0,0 GET a
READ
PROCEDURE test
b = SPACE(10)
@ 1,0 GET b
READ
? READKEY()
WAIT WINDOW
Additional reference words: FoxDos buglist2.00 fixlist2.00 2.00
KBCategory: kbprg kbfixlist kbbuglist
KBSubcategory:
Solution Type : kbfix
Last Reviewed: October 14, 1997