Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>setkey() - get procedure assigned to a key via set key to</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     setkey() - get procedure assigned to a key via SET KEY TO
  Usage:    <string> = setkey(<key>)
  Params:   integer <key> - the inkey() value of the key you want
            to check
  Returns:  a string equal to the name of the procedure that is
            assigned to that key via SET KEY TO, or null if the
            key is unassigned.

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

                 ? setkey(28)
                 * prints "" (null)

                 SET KEY 28 TO POPUP_HELP
                 ? setkey(28)
                 * prints "POPUP_HELP"

                      or:

                 tempstr = ""
                 if iskeyset(28)
                      tempstr = setkey(28)
                      set key 28 to ADDHELP
                 endif

                 do ADDproc

                 set key 28 to &tempstr


See Also: fkey() iskeyset() setkeysave() setkeyrest()

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