Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting key from collection
Message
De
22/03/2011 11:38:48
 
 
À
22/03/2011 11:32:52
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01504426
Message ID:
01504514
Vues:
31
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform