 |
THE HYPERCARD CENTER |
|
|
Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.
poppop card pop card { into | after | before } ¬ [chunk of] container
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. Examplespop card pop card into theCard pop card before bkgnd field "History List" pop card after last line of bkgnd field "History List"
Demo Scripton goHomeAndBack set lockmessages to true -- to leave this field up push this card go to card 3 of stack "Home" wait 30 pop card end goHomeAndBack
Related Topics Placeholders
chunkOne of the following forms (or combinations thereof): ordinal character character posInteger [to posInteger] ordinal word word posInteger [to posInteger] ordinal item item posInteger [to posInteger] ordinal line line posInteger [to posInteger]
For example: first character second item middle line character 1 char 1 to 10 word 3 item 5 to (the number of items of me) line 1 to 10 char 1 to 10 of word 2 to 4 of ¬ line 3 to 6
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. containerHyperTalk 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. myVariable [the] selection the Message box btn 3 bg btn "Names" card field 1 bkgnd field "Total" menu 2 menu "Edit"
Additionally, you can refer to a button or field by its part number: card part 1 last background part
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 first window's name
the container is first window . The object it contains is a name property.
HyperTalk Reference
|