User Guide
274
getProp()
Syntax
getProp(list, property)
list.property
Description
Property list function; identifies the value associated with the property specified by property in
the property list specified by list.
Almost identical to the
getaProp command, the getProp command displays an error message if
the specified property is not in the list or if you specify a linear list.
Example
This statement identifies the value associated with the property #c in the property list Answers,
which consists of [#a:10, #b:12, #c:15, #d:22]:
getProp(Answers, #c)
The result is 15, because 15 is the value associated with #c.
See also
getOne()
getPropAt()
Syntax
list.getPropAt(index)
getPropAt(list, index)
Description
Property list function; for property lists only, identifies the property name associated with the
position specified by index in the property list specified by list. If the specified item isn’t in the
list, or if you use
getPropAt() with a linear list, a script error occurs.
Example
This statement displays the second property in the given list:
put Answers.getPropAt(2)
-- #b
The result is 20, which is the value associated with #b.
on getPropertyDescriptionList
Syntax
on getPropertyDescriptionList
statement(s)
end
Description
System message and event handler; contains Lingo that generates a list of definitions and labels
for the parameters that appear in a behavior’s Parameters dialog box.
Place the
on getPropertyDescriptionList handler within a behavior script. Behaviors that
don’t contain an
on getPropertyDescriptionList handler don’t appear in the Parameters
dialog box and can’t be edited from the Director interface.