Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour Version 0.37 (c) reference Guid - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

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
                  Clipper-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()
      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, but has been extended
      for Harbour.

 Files

      Library is rtl



See Also: INKEY() LASTKEY()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson