Mike,
In VB6 you have one collection (which is as well in VB for Net and not in
C#). However most of us here have the opinion that it is the only thing that
should be as possible avoided from the Net namespace Microsoft.VisualBasic
(this is a true part of Net).
In .Net there are endless collections, lists, special collections, generic
collections etc.
In this case you can start with the arraylist, however better is a simple
List(of String) because then the strings are easier to use.
http://msdn2.microsoft.com/en-us/lib...19(vs.80).aspx
Cor
"Mike" <Mi**@discussions.microsoft.comschreef in bericht
news:5E**********************************@microsof t.com...
Checking whether an item exists in a collection before adding it ... (Key
is
always a string and in this case is the value as well)
As Net has a Contains method ... is the following a safe alternative to
the
VB6 On Error Resume Next?
If Not colDs.Contains(sKey) Then
colIDs.Add(sKey, sKey)
End If
Thanks,
Mike