Note: This is a work in progress and will be formatting errors. Read more about the project on the home page. push
push card [of stack ] push bkgnd [of stack ] push stack The push command saves the identification of a card in HyperCard’s memory. If you specify a background or stack, HyperCard stores the location of the first card of the background or stack. In all cases, HyperCard saves the full card ID and the path name for the stack. Each call to push saves a card ID in last-in, first-out order. You can return to saved locations using the pop command. Note: The word stack that forms part of the stack identifier stack is optional with the push command. There is a limit of twenty pushes. If you pop more than you push , you go to the Home stack. Examples
Demo Script
PlaceholderscardAn expression that identifies a card by name, number, or id using one of the following forms (in AppleScript, use “background” in place of “bkgnd”):
card id posInteger [of bkgnd ]card text [of bkgnd ] -- namecard posInteger [of bkgnd ] -- numberordinal card [of bkgnd ]position card [of bkgnd ]ordinal marked cardposition marked cardmarked card posIntegerFor example:
When used inside a card script in HyperTalk:
When a card receives a message: See also: button and field stack An expression that identifies a stack by its name, using one of the following forms:
For example:
When used inside a stack script:
When a stack receives a message:[the] target bkgnd A HyperTalk expression that identifies a background by name, number, or id, using one of the following forms:
For example:
From within a background script, the term me refers to that background.
When a background receives a the message [the] target, that message is referring to the background. See also: card Related Topics
|
Version 0.7b1 (March 24, 2022)