quick vb question about collections/classes and memory

TranceNation

Platinum Member
Jan 6, 2001
2,041
0
0

if I have a collection and add stuff to it, then create a new one, does the old collection get freed or does it still exist in memory?

ie, if i do the following:

Dim mylist as collection
set mylist = new collection
mylist.add "test1"
set mylist = new collection
mylist.add "test2"


thanks