When creating a list using the syntax
begins with 0.
The maximum length of a single line of executable script is 256 characters. Large lists cannot be
created using
list()
brackets ([]), put the data into a field, and then assign the field to a variable. The variable's
content is a list of the data.
Parameters
strigValue1, stringValue2 ...
the list.
Example
This statement sets the variable named designers equal to a linear list that contains the names
Gee, Kayne, and Ohashi:
-- Lingo syntax
designers = list("Gee", "Kayne", "Ohashi") -- using list()
designers = ["Gee", "Kayne", "Ohashi"] -- using brackets
// JavaScript syntax
var designers = list("Gee", "Kayne", "Ohashi");
See also
propList()
listP()
Usage
listP(item)
Description
Function; indicates whether a specified item is a list, rectangle, or point (1
(0
).
or FALSE
Parameters
Required. Specifies the item to test.
item
Example
This statement checks whether the list in the variable
displays the result in the Message window:
put listP(designers)
The result is 1, which is the numerical equivalent of
See also
ilk(),
objectP()
384
Chapter 12: Methods
, with or without parameters, the index of list values
[]
. To create a list with a large amount of data, enclose the data in square
Optional. A list of strings that specify the initial values in
is a list, rectangle, or point, and
designers
.
TRUE
) or not
or TRUE
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers