Re: collection clone?
- From: "Craig Buchanan" <msnews.microsoft.com>
- Date: Tue, 28 Jun 2005 10:34:42 -0500
Ken-
Thanks for the reply. I made a mistake. I do want to keep the key.
perhaps i need a mechanism to store the keys.
Do you have a recommendation?
Thanks,
Craig
"Ken Halter" <Ken_Halter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23URbQK$eFHA.3012@xxxxxxxxxxxxxxxxxxxxxxx
> "Craig Buchanan" <msnews.microsoft.com> wrote in message
> news:eA1k$C$eFHA.1680@xxxxxxxxxxxxxxxxxxxxxxx
> > is there an optimal way to clone a collection? i was going to do
> > something
> > like:
>
> You can save the Index using....
>
> Dim i As Integer
> For i = 1 to m_Collection.Count
> Clone.Add Item
> Next
>
> ...but, you lose the Key. I guess it depends on which you use most.
Looking
> at your code, it seems that you don't use the Key so maybe it's good
enough.
>
> --
> Ken Halter - MS-MVP-VB - http://www.vbsight.com
> DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
> Please keep all discussions in the groups..
>
>
.
- Follow-Ups:
- Re: collection clone?
- From: Ken Halter
- Re: collection clone?
- References:
- collection clone?
- From: Craig Buchanan
- Re: collection clone?
- From: Ken Halter
- collection clone?
- Prev by Date: Re: Back to Square 1 -- User Control and GUID problems...
- Next by Date: Re: select case syntax
- Previous by thread: Re: collection clone?
- Next by thread: Re: collection clone?
- Index(es):
Relevant Pages
|