Note: This is a work in progress and will be formatting errors. Read more about the project on the home page. Writing message handlersWhen you write a handler for a message, you specify a sequence of statements for HyperCard to run. Each message handler has the following form, with the italicized words as placeholders:
When it runs the message handler, HyperCard sends each line of the handler as a message itself (so handlers can call other handlers). Important: The message name does not have to be one of HyperCard’s built-in system messages or commands. For example, if you wanted a new command called
Of course, HyperCard doesn’t know about the For example, the script of a card button might contain the following handler for the system message
If the script also contains the If HyperCard can’t find the PlaceholdersmessageNameAny text string, without quotation marks, that represents the name of the message handler you want to write:
As in: statements Any return-separated list of built-in commands, user-defined handlers, or keywords that are part of a message or function handler. Related Topics
|
Version 0.7b1 (March 24, 2022)