LASTKEY()
Get the last key extracted from the keyboard buffer.
- Syntax
- LASTKEY() --> nKey
- Arguments
- None
- Returns
- <nKey> The last key extracted from the keyboard buffer.
- Description
- Returns the value of the last key exttracted from the Harbour keyboard buffer
- Examples
- // Continue looping unless the ESC key was pressed in MainFunc()
- WHILE TRUE
- MainFunc()
- IF LASTKEY() == K_ESC
- EXIT
- ENDIF
- END WHILE
- Tests
- KEYBOARD "AB"; ? INKEY(), LASTKEY() ==> 65 65
- Status
Ready
- Compliance
- LASTKEY() is compliant with CA-Clipper 5.3
- Files
- Library is rtl
- See Also