Adding to A Collection

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi -

Here's my latest question. I have created a collection. When I add to that
collection, i use an array to populate from a text file delimited by a pipe
(|):

arrDATA(x) = Split(strNextLine,"|"
collDATA.Add KEY:=strNextCollKey, Item:=arrDATA(x)

So the collection item will take the length of the array. Later, I would
like to attach more data to that collection item, thus increasing it's
length. How can this be accomplished? Do I have to remove the item and add
it again?
 
If the item is an array yes you do. But why do it that way. why not add each
array item as a single collection item, then you just add new ones without
worrying what is there.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
I guess I could, but I have a lot of data (15000+ lines) and about 20
"columns" for each line. So I'm trying to use the "2-D" capability of the
collection. Perhapse I'm just not seeing the benefit of assigning each bit
of data as a new collection item... Could you ellaborate?


--
Thanks!
Max


Bob Phillips said:
If the item is an array yes you do. But why do it that way. why not add each
array item as a single collection item, then you just add new ones without
worrying what is there.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top