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

Syntax:     SETLASTKEY(<expN>)

Arguments:  <expN> corresponds to the code of the character  to be set
            as the LASTKEY.

Returns:    A character string.
            The SETLASTKEY() function returns a null string.

Usage:      SETLASTKEY() changes the contents of the character in the
            memory which is used by the LASTKEY() function.  This can
            be used to save the current value of LASTKEY() when in the
            error handling routines, enabling you to restore before
            returning to the program.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   character = LASTKEY()               && Save code of
            ...                                 && the character

            SETLASTKEY(character)               && Restore LASTKEY()



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