ArrayList 就是數組列表
ArrayList有三個構造器:
ArrayList()
ArrayList(int
ArrayList(ICollection)
一個簡單的例子如下
Dim t As New ArrayList()
t
Dim d As New Collection
d
d
t
For Each aa As String In t
MsgBox(aa
Next
ArrayList的構造器可以接受一個集和
Dim d As New Collection
d
d
d
Dim t As New ArrayList(d)
Dim sb As New System
If t
sb
sb
sb
For Each aa As String In t
sb
sb
Next
End If
MsgBox(sb
另外還可以給 ArrayList的構造器傳遞一個整數
Dim t As New ArrayList(
Dim d As New Collection
d
d
d
t
MsgBox(t
t
MsgBox(t
t
MsgBox(t
由於ArrayList是集和類型
From:http://tw.wingwit.com/Article/program/ASP/201311/21648.html