Not sure what you want. To keep track of named objects, I use a HashTable.
Dim MyHash As New System.Collections.Hashtable( _
New CaseInsensitiveHashCodeProvider(), _
New CaseInsensitiveComparer())
........
Dim intW As Integer
Dim sName as String
If MyHash.ContainsKey(sName) Then
intW = CType(MyHash.Item(sName), Integer)
intW += 1
MyHash.Item(sName) = intW
Else
' Got 1 of whatever
MyHash.Add(sName, 1)
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.