Microsoft KB Archive/88986

= INKEY(0) Function Determines Key CHR Value =

Article ID: 88986

Article Last Modified on 9/30/2003

-

APPLIES TO


 * Fox Software FoxBASE+ 1.21 for MS-DOS
 * Microsoft FoxBASE+ 2.5 for MS-DOS

-



This article was previously published under Q88986



SUMMARY
The INKEY(0) function determines the corresponding CHR value for a key press. When the INKEY(0) function returns a negative value, a function key was pressed. Use care when passing the value from INKEY(0) to the CHR function.

The character trapped by INKEY(0) is not echoed to the console when a key is pressed.

Format
=INKEY(0)

Example
. ? INKEY(0) && Get the next key press and print ASCII value -3 && The F4 function key was pressed (ASCII - 76)

Keywords: KB88986

-

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

© Microsoft Corporation. All rights reserved.