Note: This is a work in progress and will be formatting errors. Read more about the project on the home page. delete [menuItem of] menu delete [menuItem from] menu delete {button | field |part } The delete command removes text from a container, menu items from a menu, menus from the menu bar, and buttons or fields from the current card or background. When you use the form delete part , deleteButton or deleteField is sent to the object that's being deleted. You can't use this command to delete a part anywhere except on the current card. Note: Using delete to delete a line is not the same as putting empty into the line: delete removes the final return character as well as the text, while putting empty into the line just removes the text. Examples
Demo Script
PlaceholderschunkOne 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. menu An expression that evaluates to one of the following: For example: part An expression that identifies a button or field by its ordinal position among all buttons and fields on the same card or bkgnd. A button's or field’s part number is available in its Info dialog box; in a script, it is available in the object’s partNumber property.You can use any of these forms: [ card ] part posInteger [bg ] part posInteger ordinal [card ] [bg] part For example: Related Topics
|
Version 0.7b1 (March 24, 2022)