Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting key from collection
Message
De
22/03/2011 11:24:43
 
 
À
21/03/2011 19:20:31
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:
01504506
Vues:
38
>I resolved the issue by adding a 5th vector in the loObject holding the key. Thus, when I scan the collection, I can obtain loObject(5) as they key. If someone has a simpler way of accomplishing this, you're welcome to share the info.

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).
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