Get the last key extracted from the keyboard buffer.
LASTKEY( [<nInputMask>] ) --> nKey
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
<nKey> The last key extracted from the keyboard buffer.
Returns the value of the last key exttracted from the Harbour keyboard buffer
// Continue looping unless the ESC key was pressed in MainFunc() DO WHILE .T. MainFunc() IF LastKey() == K_ESC EXIT ENDIF ENDDO
KEYBOARD "AB"; ? INKEY(), LASTKEY() ==> 65 65
LASTKEY() is compliant with CA-Cl*pper 5.3, but has been extended for Harbour.
Library is rtl