|
-
Nov 1st, 2003, 12:44 AM
#1
Thread Starter
New Member
HashTable error in VB.NET
Hi,
"""" I am getting the error Item has already been added. Key in Dictionary "0". Key being Added "0". """"
From form i have loaded a series of numbers to Class1. In Class1 i am using HashTable to store the values.
Then i am passing the values from Class1 to Class2 for doing some operations. Here also in Class2 i am stroing the values in HashTable.
But getting the above error while debugging.
Please Advice.
Thanx in Advance.
-
Nov 1st, 2003, 09:12 AM
#2
yay gay
a hashtable can't contain one more equal key
for example you can't add 2 keys saying "keytwo"
\m/  \m/
-
Nov 3rd, 2003, 07:06 AM
#3
Thread Starter
New Member
So how to get around this problem.
How can i take say 10 numbers out of a series of 100 numbers stored in a Hashtable in Class1 and do some mathematical operation (the operational logic is in Class2).
Or is there any better way of doing it?
-
Nov 3rd, 2003, 07:25 AM
#4
yay gay
i didnt quite get what you meant.
why can't you use a regular array? or a collection?
\m/  \m/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|