User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 401,458 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,023 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Views: 290 | Replies: 3
Reply
Join Date: Feb 2008
Posts: 84
Reputation: dinilkarun is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
dinilkarun dinilkarun is offline Offline
Junior Poster in Training

Collection

  #1  
Apr 1st, 2008
i have the things listed below

dim col_values as new collection
dim var_list(100) as variant

i want to add var_list1 to col_values under a key say"k"

i try using this

col_values.add var_list1,"k"

but this is throwing up an error.

Please help me........
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2007
Location: Bangalore,India
Posts: 1,213
Reputation: debasisdas is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 78
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Nearly a Posting Virtuoso

Re: Collection

  #2  
Apr 2nd, 2008
What is var_list1

you have declared var_list
Share your Knowledge.
Reply With Quote  
Join Date: May 2007
Location: India
Posts: 493
Reputation: choudhuryshouvi is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 45
choudhuryshouvi's Avatar
choudhuryshouvi choudhuryshouvi is offline Offline
Posting Pro in Training

Re: Collection

  #3  
Apr 3rd, 2008
can you afford to explain it more clearly?
Shouvik_The_Expert_Coder
Have a problem? Don't worry just give me a call and I'll fix it for you.
Reply With Quote  
Join Date: Nov 2006
Posts: 711
Reputation: QVeen72 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 97
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Master Poster

Re: Collection

  #4  
Apr 3rd, 2008
Hi,

the problem is, you have not mentioned Array's Index , Try this :

col_values.add var_list1(2), "k"

Also check Key (k) should be Unique in the Collection.

What is the error..?

Regards
Veena
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 1:24 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC