Re: how to clear items in a Collection?
From: Thilaka (thilaka_at_thisisadummyemailaddress.com)
Date: 07/12/04
- Next message: Thilaka: "field values getting truncated"
- Previous message: Piddepadde: "Re: wrong letters showned..."
- In reply to: Stefan Wuebbe: "Re: how to clear items in a Collection?"
- Next in thread: Stefan Wuebbe: "Re: how to clear items in a Collection?"
- Reply: Stefan Wuebbe: "Re: how to clear items in a Collection?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 12 Jul 2004 15:43:28 +0600
Thanx Stefan
I guess i should've just read MSDN before posting this question..
Regards,
Thilaka
"Stefan Wuebbe" <stefan.wuebbe@gmx.de> wrote in message
news:%23QQfbw%23ZEHA.4092@TK2MSFTNGP11.phx.gbl...
> Try oCollection.Remove(-1)
>
>
> hth
> -Stefan
>
> "Thilaka" <thilaka@thisisadummyemailaddress.com> schrieb im Newsbeitrag
> news:%23Kx6GJ%23ZEHA.2840@TK2MSFTNGP11.phx.gbl...
> > How do i clearn the items in a collection?
> >
> > Esp,
> > loFiles = CreateObject("Collection")
> > loFiles.Add(...)
> > loFiles.Add(...)
> > loFiles.Add(...)
> > loFiles.Add(...)
> > loFiles.Add(...)
> >
> >
> > ...
> > After some processing i want to clear out the items in loFiles.
> > As far as i know the only way of achieving this is with the following
line,
> > loFiles = CreateObject("Collection")
> >
> > I could use the Remove method, but then i'd have to do this in an
iteration.
> >
> > Any better way?
> >
> > Regards,
> > Thilaka
> >
> >
>
- Next message: Thilaka: "field values getting truncated"
- Previous message: Piddepadde: "Re: wrong letters showned..."
- In reply to: Stefan Wuebbe: "Re: how to clear items in a Collection?"
- Next in thread: Stefan Wuebbe: "Re: how to clear items in a Collection?"
- Reply: Stefan Wuebbe: "Re: how to clear items in a Collection?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|