Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.
The pop card
command retrieves the identification (full card ID and stack path name) of a card previously saved with the push card
command.
If you don’t provide a container to hold the card information, pop
goes directly to the popped card.
If you do specify a container, pop
puts the card’s identification into the container, and you don’t go anywhere. You can then check the card ID or stack to decide whether you want to return to that card.
One of the following forms (or combinations thereof):
For example:
A chunk combined with of
and a container is called a chunk expression. For example: line 1 of card field "index"
Important: You can’t combine a stack name with a chunk expression—you can only refer to a chunk in the current stack.
HyperTalk Definition
A place where you can store and retrieve a value.
There are six types of containers in HyperCard: a variable, a button, a field, the selection, the Message box, and menus.
Additionally, you can refer to a button or field by its part number:
AppleScript Definition
An object that contains one or more other objects, known as elements of the container. In a reference, the container specifies where to find an object. You specify containers with the reserved words of
or in
.
You can also use the possesive form ('s
) to specify containers. For example, in
the container is first window
. The object it contains is a name property.