Lasso Soft Inc. > Home

[Array->Size]

[Array->Size] returns the number of elements in the array.

  • Syntax
  • Parameters
[Array->(Size)]
Required Parameters
Array The array for which the size should be returned.
Examples

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;
?>
Result:
7
Tag Link [Array->Size] Category Array
Type Member Data Source Any
Support Preferred Version 5.0
Output Type Integer Security None
Implementation LCAPI Sets Lasso 7.0, Lasso 6.0, Lasso 5.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft