Note: This is a work in progress and will be formatting errors. Read more about the project on the home page. put
The The container can be a button, a field, a variable, the Message box, the selection, a Use The lines of text that you put into a pop-up button become the items of the menu that appears when you click the button. Before you can add items to a menu, the menu must already exist. The The optional To skip a message name, use an empty item—a null between two commas:
Examples
Demo Script
PlaceholdersexpressionHyperTalk DefinitionAny HyperTalk expression. All expressions evaluate to text, a number, or a constant. For example:
Note: Formally, HyperCard distinguishes between factors (simple values) and expressions. The difference between factors and expressions matters only if you like to drop parentheses. Most functions take factors as their parameters, which is why length of 3 + 5 returns 6 and length of (3 + 5) returns 1 . 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.AppleScript DefinitionAny series of words that has a value. preposition One of the following: chunk One of the following forms (or combinations thereof): ordinal charactercharacter posInteger [to posInteger ]ordinal wordword posInteger [to posInteger ]ordinal itemitem posInteger [to posInteger ]ordinal lineline posInteger [to posInteger ]For example:
A chunk combined with of and a container is called a chunk expression. For example:
Important: You can’t combine a stack name with a chunk expression—you can only refer to a chunk in the current stack. 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.
Additionally, you can refer to a button or field by its part number:
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 the container is first window . The object it contains is a name property. menuItemList A comma-separated list of names that you want to appear on a menu. Use the single character “ - ” to get a gray line.For example, the Menu item list for the first 9 items on the Go menu would be:
See also: messageList. menuItem An expression that evaluates to one of the following: For example: menu An expression that evaluates to one of the following: For example: messageList A comma-separated list of message names that you want sent when the user chooses a menu item in menuItemList. Use empty to indicate no message in HyperTalk, or "" to indicate no message in AppleScript.For example, the menu message list for the first 9 items on the Go menu would be: Related Topics
|
Version 0.7b1 (March 24, 2022)