||THE HYPERCARD CENTER
Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.
add number to [
Note: The container or chunk referred to must contain a number.
add command adds the value of
number to the number in a container or chunk and replaces the contents of the container or chunk with the result.
(You can use the
is a operator to see if the container is a number.)
add 3 to It
add field "Amount" to field "Total"
get last line of card field "credits"
if it is a number then add it to item 1 of theTotal
if the Message box is a number then add 15 to Message box
An expression that evaluates to a number.
169 / 19
(60.625 * 500)
i+1 -- (where i is a number)
line 1 of fld "Debits"
Note: Formally, HyperCard distinguishes between factors (simple values) and expressions. The difference between factors and expression matters only if you like to drop parentheses. Most functions take factors as their parameters, which is why
abs of -10 + 2 returns
abs of (-10 + 2) returns
8. In short, always use parentheses to group things the way you want them to evaluate, and you won’t have to worry about the difference between factors and expressions.
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.
Additionally, you can refer to a button or field by its part number:
the Message box
bg btn "Names"
card field 1
bkgnd field "Total"
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
You can also use the possesive form (
's) to specify containers. For example, in
the container is
first window's name
first window. The object it contains is a name property.
| answer »
(March 24, 2022)
Switch to Modern View