tags:

views:

65

answers:

2

how do i clear all elements in an arraylist?

+1  A: 
Dim myAL As New ArrayList()
myAl.Clear()

http://msdn.microsoft.com/en-us/library/system.collections.arraylist.clear.aspx

Also.. With respect to Joel's comment...

Drawbacks of ArrayLists

madcolor
+2  A: 

Call

arrayList.Clear()

Where arrayList is your ArrayList.

Jay Riggs