Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>setlastkey()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SETLASTKEY()
 Sets the value for LASTKEY()
------------------------------------------------------------------------------
 Syntax

     SETLASTKEY(<nKeyValue>) --> cNull

 Argument

     <nKeyValue> Designates the character code passed to LASTKEY().

 Returns

     SETLASTKEY() always returns a null string.

 Description

     SETLASTKEY() changes the contents of the memory area used by LASTKEY().
     This allows you to save the current contents of the LASTKEY() buffer in
     an error trap and restore it when you return to the program.

 Example

     Save the last key value so it can be changed and restored later:

     nCharacter: = LASTKEY()        // Save character code   *...   *...
     SETLASTKEY(nCharacter)         //  Reset LASTKEY


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