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

What is var_list1

you have declared var_list

can you afford to explain it more clearly?

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.