LASTKEY()
Get the last key extracted from the keyboard buffer.
Syntax
LASTKEY( [<nInputMask>] ) --> nKey
Arguments
nInputMask is an optional integer value composed of one or more INKEY_ or HB_INKEY_ constants. The sole purpose of this argument is to allow switching between using HB_INKEY_EXTENDED key codes and using the normal CA-Cl*pper-compatible key codes
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() DO WHILE .T. MainFunc() IF LastKey() == K_ESC EXIT ENDIF ENDDO
Tests
KEYBOARD "AB"; ? INKEY(), LASTKEY() ==> 65 65
Compliance
LASTKEY() is compliant with CA-Cl*pper 5.3, but has been extended for Harbour.
Files
Library is rtl
Seealso
INKEY(), LASTKEY()
Pingback: Harbour All Function – L | Viva Clipper !
Pingback: Harbour UI – Input Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !