Difference between revisions of "POP KEY"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Helengeorge (Talk | contribs) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
Restores ON KEY LABELS that were placed on the stack with PUSH KEY | Restores ON KEY LABELS that were placed on the stack with PUSH KEY | ||
Line 35: | Line 28: | ||
procedure proc1 | procedure proc1 | ||
− | @ 5,5 say "PROC 1 -- Popped The On Key Label" | + | @5,5 say "PROC 1 -- Popped The On Key Label" |
return | return | ||
procedure proc2 | procedure proc2 | ||
− | @ 6,6 say "PROC 2 -- Resetting The On Key Label" | + | @6,6 say "PROC 2 -- Resetting The On Key Label" |
− | pop key | + | pop key |
return | return | ||
</code> | </code> | ||
Line 46: | Line 39: | ||
==Products== | ==Products== | ||
− | Recital | + | Recital |
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
+ | [[Category:Keyboard Events]] | ||
+ | [[Category:Keyboard Events Commands]] |
Latest revision as of 15:57, 12 November 2009
Purpose
Restores ON KEY LABELS that were placed on the stack with PUSH KEY
Syntax
POP KEY [ALL]
See Also
ON(), ON KEY, PUSH KEY, SET COMPATIBLE,
Description
The POP KEY command is used to recover ON KEY LABEL command settings from the stack following a corresponding PUSH KEY command. SET COMPATIBLE should be set to ON when using this command.
ALL
Using the ALL clause will clear all currently active key assignments defined with ON KEY LABEL as well as all key assignments from the stack that were defined with ON KEY LABEL.
Example
clear all on key label f10 do proc1 push key clear on key label f10 do proc2 read return procedure proc1 @5,5 say "PROC 1 -- Popped The On Key Label" return procedure proc2 @6,6 say "PROC 2 -- Resetting The On Key Label" pop key return
Products
Recital