Pass Control Statement
The pass control statement is used to interrupt a message handler and pass the message that invoked the handler to the next object in the message-passing hierarchy.
The pass control statement can be used in conjunction with the doMenu message to respond to certain navigational commands. For instance, if the user were on the last card of a stack and chose Last from the Navigation menu, normally nothing would happen. However, the command can be intercepted with a message that tells the user that the current card is the last card.
To try this, navigate to the last card of a stack and put the following into its script:
on doMenu menuItem
"This is the last card" else pass doMenu
This text has been mechanically extracted from the Oracle Media Objects 18.104.22.168 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.