Restituisce il numero di elementi effettivamente contenuti nell'oggetto ArrayList.
Sintassi
Object.Count()
Argomenti - Object: obbligatorio. Sempre il nome dell'oggetto ArrayList.
Valore restituito
Numero di elementi effettivamente contenuti nell'oggetto ArrayList.
Note
Nell'esempio seguente viene illustrato l'uso del metodo Count.
Esempio 1
'Create ArrayList Object
Dim Obj
Dim Cnt
Set Obj = CreateObject("System.Collections.ArrayList")
'Add Elements to the end of the ArrayList Object
Dim Index
Index = Obj.Add(10)
Index = Obj.Add(40)
Index = Obj.Add(20)
'Gets the number of elements actually contained in the ArrayList object.
Cnt = Obj.Count()
'Output: 3