Lingo Dictionary > L-N > list() |  |

list()

Syntax

    list(value1, value2, value3...)

Description

Function and data type; defines a linear list made up of the values specified by `value1`, `value2`, `value3`.... This is an alternative to using square brackets (`[ ]`) to create a list.

The maximum length of a single line of executable Lingo is 256 characters. You can't create a very large list using this command. If you have a large amount of data that you want to put in a list, enclose the data in square brackets and put the data into a field. You can then assign the field to a variable. The variable's content is a list of the data.

Example

This statement sets the variable named designers equal to a linear list that contains the names Gee, Kayne, and Ohashi:

    designers = list("Gee", "Kayne", "Ohashi")

The result is the list ["Gee", "Kayne", "Ohashi"].

See also

`integer(), integerP()`, `value()`