Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page. Referring to objectsYou can refer to HyperCard objects and other elements from a script in any of several ways. Click Tips for a list of synonyms that you can use for referring to objects. nameAn object’s name is the value found in its Info dialog box. For example:
It’s a good idea to use quotation marks around an object’s name so that HyperCard recognizes it literally and doesn’t look for a variable by that name. Note: HyperCard interprets numberAn object’s number represents its position among like objects within the object that contains it. Buttons and fields are ordered within a card or background. Cards and backgrounds are ordered within a stack.
Changing the order of a button, field, card, or background changes its number. idAn object or menu's ID is a unique number assigned by HyperCard. Object ID numbers never change. The Info dialog box for each object displays its ID. (Stacks don't have ID's.)
A program's ID is its application signature:
partPart refers to a specific button or field in its ordinal position among all the buttons and fields in that domain:
If you don't specify a domain, the default domain is card. ordinalYou can refer to an object using any of the following ordinals:
For example:
positionYou can refer to some objects using any of the following positions:
For example:
meMe is one way to refer to an object dynamically. It refers to the object that contains the currently executing handler. With buttons and fields,
targetThe target is another way to refer to an object dynamically. It refers to the object that first received the message currently being handled. With buttons and fields, use For example:
|
Version 0.8b4 (July 4, 2025)