The Count attribute can be used to determine the number of used list items. If the list is empty, Count returns a value of 0.
|
Syntax | |
|
Count | |
|
Return value | |
|
Type |
Description |
|
Long |
Number of filled entries in the list |
|
Parameter | |
|
None | |
Example:
Colors.Add({"red", "blue", "green", "brown", "yellow"})
MsgBox(Colors.Count)
#Shows 5
Colors.Clear
Colors.Add({"red", "blue", NoValue, "green", NoValue, "brown", "yellow"})
MsgBox(Colors.Count)
#Shows also 5