Hello,
I want to keep a list references to database records being
accessed.
I will do this by storing the record keys in a list. The list
must not contain duplicate keys. So I check the Contains
property before adding.
Question. Can I use an Array for this or should I use an
ArrayList? If I use an array I will declare it unsized. I can't
understand how I can add items to an array with the .Add()
method when my array is declared as static with a Dim statement.
What about ReDim? I thought that I needed to use ReDim to
change the array size each time I add an item.
PS: I have no idea how long the array will be.