To set a value in a property list, do one of the following:
•
Use the equals (=) operator. (You can also use the
in earlier versions of Director.)
For example, the statement
associated with the property Bruno.
•
Use dot syntax.
•
For example, the statement
associated with the property Bruno in the list
To retrieve a value in a property list, do one of the following:
•
Use the list variable followed by the name of the property associated with the value. Place
square brackets around the property. (You can also use the
the
getPropAt()
For example, in the property list
Burger", #dinner:"Hungarian Goulash"]
represents the value associated with the property
•
Use dot syntax.
For example, using the
value Waffles.
Checking items in a list
You can determine the characteristics of a list and the number of items the list contains by
using the following commands and functions. See entries for individual commands in the
Lingo Dictionary.
•
To display the contents of a list, use the
contains the list.
•
To determine the number of items in a list, use the
•
To determine a list's type, use the
•
To determine the maximum value in a list, use the
•
To determine the minimum value in a list, use the
•
To determine the position of a specific property, use the
command.
400
Chapter 16
foodList[#Bruno] = "sushi"
foodList.Bruno = "sushi"
function, which were introduced in earlier versions of Director.)
foodList = [#breakfast:"Waffles", #lunch:"Tofu
property list above,
foodList
put
function.
ilk()
command, which was introduced
setAProp
makes sushi the new value
makes sushi the new value
.
foodList
getaProp
, the expression
foodList[#breakfast]
. The value is Waffles.
#breakfast
foodList.breakfast
command followed by the variable that
function.
count()
function.
max()
function.
min()
,
findPos
findPosNear
or
commands, or
getAt
represents the
, or
getOne
Need help?
Do you have a question about the DIRECTOR MX-USING DIRECTOR MX and is the answer not in the manual?
Questions and answers