Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2006

Tip: Looking for answers? Try searching our database.

Collection Key

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gabch - 20 Mar 2006 10:59 GMT
How can I get back the key of collection object?

Best regards
Gabriel

Signature

gabch

Robin Hammond - 20 Mar 2006 13:52 GMT
Gabriel,

Ridiculous as it sounds, I don't think you can.

Robin Hammond
www.enhanceddatasystems.com

> How can I get back the key of collection object?
>
> Best regards
> Gabriel
Tom Ogilvy - 20 Mar 2006 16:07 GMT
You can't get a list of keys for elements in a collection unless they match
the item stored in the collection.

Maybe a dictionary object from the scripting runtime would be better.  

Signature

Regards,
Tom Ogilvy

> How can I get back the key of collection object?
>
> Best regards
> Gabriel
Chip Pearson - 20 Mar 2006 16:10 GMT
Unfortunately, there is no way to read the keys of a collection.
You might consider using a Dictionary object.

Signature

Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

> How can I get back the key of collection object?
>
> Best regards
> Gabriel
paul.robinson@it-tallaght.ie - 20 Mar 2006 17:40 GMT
Hi
I tend to hold the key, if i need it, as part of the object in the
collection. So a collection of text strings would now be two element
arrays - the first one the string and the second one the key.

regards
Paul
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.