Tag Link | [Array] | Category | Array |
---|---|---|---|
Type | Substitution | Source Available | No |
Support | Preferred | Version | 5.0 |
Change | Unchanged | Data Source | Any |
Output Type | Array | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0 |
[Array] creates an array data type with each of the parameters of the tag as the initial elements of the array. The elements of the array can be of any data type. Name/Value pairs are placed into the array as elements of type pair.
[Array: 'Array Elements']
[Variable: 'VariableName'=(Array: 'Array Elements')]
Required Parameters | |
---|---|
Array Elements | The parameters of the [Array] tag including values and name/value parameters are copied as the starting elements of the array. |
To create an array of the days of the week:
Use the [Array] tag with each of the names of the days of the week as parameters. The following example stores an array with the names of the days of the week in a variable named DaysOfTheWeek.
[Variable: 'DaysofTheWeek'=(Array: 'Sunday', 'Monday',
'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday')]