Tag Link | [Array->Size] | Category | Array |
---|---|---|---|
Type | Member | Source Available | No |
Support | Preferred | Version | 5.0 |
Change | Unchanged | Data Source | Any |
Output Type | Integer | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0 |
[Array->Size] returns the number of elements in the array.
[Array->(Size)]
No Parameters Required.
To return the size of an array:
Use the [Array->Size] tag. The following example returns the number of items in an array of the days of the week.
<?LassoScript
Variable: 'DaysOfWeek'=(Array: 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');
Output: $DaysOfWeek->Size;
?>
7