Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference » Keywords

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

pass

pass functionName
pass messageName


The pass keyword ends execution of the current handler and sends the entire message that initiated execution of the handler to the next object in the message-passing order.


(Ordinarily, once a message is handled, it does not continue along the message- passing order.)


In general, a stack should pass any system messages that it handles so that other stacks later in the message-passing order also get a chance to handle the message.


For example, a mouseWithin handler in your Home stack won't ever run if you also have a mouseWithin handler without a pass statement in a stack before Home in the message-passing path.


Placeholders

functionName
Any text string, without quotation marks, that represents the name of the function handler you want to write:

myAverage
onlyOneWindow
As in the HyperTalk examples:
function myAverage theNumbers
function onlyOneWindow


messageName
Any text string, without quotation marks, that represents the name of the message handler you want to write:

calculateDebt
selectWholeLine
As in:
on calculateDebt
on selectWholeLine theLine, aContainer


Related Topics

« on | HyperTalk Reference | repeat »


Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View