User Guide
440
This statement sets the variable itemCounter to the number of items in the field Names:
itemCounter = the number of items in member("Names").text
You can accomplish the same thing with text cast members using the syntax:
itemCounter = member("Names").item.count
See also
item...of, count(), number (characters), number (lines), number (words)
number (lines)
Syntax
the number of lines in chunkExpression
Description
Chunk expression; returns a count of the lines in a chunk expression. (Lines refers to lines
delimited by carriage returns, not lines formed by line wrapping.)
Chunk expressions are any character, word, item, or line in any container of characters.
Containers include field cast members and variables that hold strings, and specified characters,
words, items, lines, and ranges in containers.
Note: The count() function provides a more efficient alternative for determining the number of lines in a
chunk expression.
Examples
This statement displays the number of lines in the string “Macromedia, the Multimedia
Company” in the Message window:
put the number of lines in "Macromedia, the Multimedia Company"
The result is 1.
This statement sets the variable
lineCounter to the number of lines in the field Names:
lineCounter = the number of lines in member("Names").text
You can accomplish the same thing with text cast members with the syntax:
lineCounter = member("Names").line.count
See also
line...of, count(), number (characters), number (items), number (words)
number (menus)
Syntax
the number of menus
Description
Menu property; indicates the number of menus installed in the current movie.
This menu property can be tested but not set. Use the
installMenu command to set up a custom
menu bar.
Note: Menus are not available in Shockwave