M
MFRASER
How do I go about looping through a hash table and removing items. I know
how do this in a collectionbase, but can't iterate through the hash table
with out getting an error.
Here is my sample code for a collection base
for(int i = this.Values.Count; i > 0 ; i--)
{
//Set local object
MyObject aObject = this.ItemByIndex(i)
if (aObject .Type== aType)
this.Remove(aObject );
}
how do this in a collectionbase, but can't iterate through the hash table
with out getting an error.
Here is my sample code for a collection base
for(int i = this.Values.Count; i > 0 ; i--)
{
//Set local object
MyObject aObject = this.ItemByIndex(i)
if (aObject .Type== aType)
this.Remove(aObject );
}