Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
HyperTalk
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Collections=== Containers of a given type were also available as collections with a pluralized version of that container type as its name—the collection of the fields on a card was <code>card fields</code>. These collections were themselves containers with their own properties. Key among these was the <code>number</code> property which was widely used during iterations and similar tasks. For instance, if one wanted to hide all the fields on a card, this could be accomplished with this code: <syntaxhighlight lang="applescript"> repeat with i = 1 to the number of card fields hide field i end repeat </syntaxhighlight> This code exposes another common feature of HyperTalk: that a property might have several names and operators. In this case the <code>hide</code> command, and the associated <code>show</code>, act by setting the value of the container's <code>visible</code> property. Thus <code>hide field i</code> is exactly equivalent to {{code|2=applescript|1=set the visible of field i to false}}. A similar example was the <code>lock screen</code> command that stopped visual updating, which was a short form for {{code|2=applescript|1=set the lockscreen to true}}, where <code>lockscreen</code> is a property of HyperCard itself—also a container. Many examples of this sort of [[syntactic sugar]] were found in HyperTalk, in order to simplify the syntax and improve readability of common code. In HyperCard 2.2 and later, the collection of collections was also available as a container's <code>parts</code>. This allowed a script to address all of the objects in a container with a single iterator.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
HyperTalk
(section)
Add topic