Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting key from collection
Message
From
22/03/2011 11:38:48
 
 
To
22/03/2011 11:32:52
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01504426
Message ID:
01504514
Views:
32
Sorry, Michel ... I should have realized you meant oTable when you were talking about the collection. My bad. Anyway, you asked if anyone had other suggestions, so that's why I mentioned the Dictionary ... in case you wanted to refactor.

~~Bonnie


>>I would probably use a Dictionary, it would be much faster. However I'm not certain what the other entries in your array are being used for, so I'm not sure how I'd structure the Dictionary (you're using an array, not a collection, BTW).
>
>The array is what I store in each collection entry. The collection is defined as:
>
>
>        Private oTable As Collection = New Collection
>
>
>I understand I could have adjusted the design here to use something else. But, I tried to use what I already have and found a solution to get the key.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform