PUSH KEY

From Recital Documentation Wiki
Revision as of 15:12, 16 March 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

PUSH KEY

Class

Keyboard Events


Purpose

Puts ON KEY LABEL settings on the stack


Syntax

PUSH KEY [CLEAR]


See Also

ON KEY LABEL, POP KEY, ON(), SET COMPATIBLE


Description

The PUSH KEY command is used to place all ON KEY LABEL command settings on a stack in memory. These key assignments are then effectively saved and can then be changed while still allowing the original assignments to be restored with the POP KEY command. SET COMPATIBLE should be set to ON when using this command.

CLEAR

Including the CLEAR clause saves all current ON KEY LABEL assignments to the stack and then clears the current assignments.


Example

clear all
on key label f10 do proc1
push key clear
on key label f10 do proc2
read
return
 
proc proc1
@ 5,5 say "PROC 1 -- Pop'd The On Key Label"
return
 
proc proc2
@ 6,6 say "PROC 2 -- Resetting The On Key Label"
pop key
return


Products

Recital Mirage Server, Recital Terminal Developer