Re: how to clear items in a Collection?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Thilaka (thilaka_at_thisisadummyemailaddress.com)
Date: 07/12/04


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



Relevant Pages

  • RE: IIS security account question ??
    ... I would create an ActiveX DLL for ASP to call with GetUserName and find out ... HTH. ... Regards, ... This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.inetserver.iis.security)
  • RE: Configuring IIS to use IP then Authentication for access
    ... Here is an ASP solution in ... HTH. ... Regards, ... This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.inetserver.iis.security)
  • Re: Install Windows Patch via GPO
    ... Best regards ... Meinolf Weber ... Disclaimer: This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.windows.group_policy)
  • Re: Install Windows Patch via GPO
    ... Best regards ... Disclaimer: This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.windows.group_policy)
  • Re: SID filter between a W2k and a W2k Domain
    ... Best regards ... Disclaimer: This posting is provided "AS IS" with no warranties, ... I created a W2k Test Domain this morning and I did a trust between the ...
    (microsoft.public.windows.server.migration)