Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to retrieve collection object key

Status
Not open for further replies.

Jeet2004

MIS
Jun 29, 2005
96
US
I am new to vb6.o so if its a stupid question dont be mad.

here is what i am trying to do I am trying to populate a collection with item and key eg
Topic.SoCollection.Add(strSolution, CStr(bAnsID))
now how can i retrieve the value stored in bansid
like for strSolution i can use
topic.soCollection.item(index)
what can be used for BansId.
Also please let me know if you think its not possible to do that.
Thanks
 
i thought of that but the thing is i am working on a preexisting code and wont be able to change .
is there some way susing collections ???
 
Well, I'm afraid that you are out of luck. The Collection class doesn't expose the Key property in the retrievable way that you want
 
Thanks strongm.
i tried to put dicitionay and it didnt show in intellisense
do i need to reference something
 
Yes. You need to reference the Microsoft Scripting Runtime library
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top