Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting key from collection
Message
From
22/03/2011 11:24:43
 
 
To
21/03/2011 19:20:31
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:
01504506
Views:
39
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform