The UpBound attribute returns the highest occupied index of the list. If the list is empty, there will be returned the value -1.
Syntax | |
UpBound | |
Return value | |
Type |
Description |
Long |
Highest occupied index of the list variable |
Parameter | |
None |
Example:
Colors.Add({NoValue, NoValue, "red", "blue", "green", NoValue, NoValue})
MsgBox(Colors.UpBound)
#shows 4