length
Description
The length() function returns the number of elements in the specified list. The index number for the first element in a list is always 0. The index number for the last list element is always the list length - 1.
Syntax
result = length (list1);
Arguments
list1 Required. The list for which the number of elements is determined.
Return Values
result Contains the number of elements in list1.
list1 = {"Fred", "George", "Sally"}; result = length (list1);
In this example, result contains the integer value 3.