Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » Commands

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

pop

pop 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.


Demo Script

on 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

Placeholders

container
HyperTalk DefinitionA 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 DefinitionAn 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.

Related Topics

« play | HyperTalk Reference | print »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View