Re: collection clone?

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



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


.



Relevant Pages

  • Re: How to store the contents of a file into a variable
    ... > I want to store the contents of a file into a variable: ... One mistake is covered by Question 7.1 ... "scan format" in your fscanf() call? ... Prev by Date: ...
    (comp.lang.c)
  • Storing SQL Count to Variable??
    ... Am confused on how to store a SQL Count to a variable... ... Dim intHelp_Id As Integer ... Prev by Date: ...
    (microsoft.public.access.formscoding)
  • DpAPI Encrypted Aes Key Problems
    ... Friend Function CreateKeyAs String ... Dim aesProvider As New RijndaelManaged ... Public Enum Store ... ' Not passing optional entropy and use the machine store ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Storing a value for later use in vba or a Macro
    ... Dim strCurrentCustomer as String ... do you programmatically store a value from one record to use in ...
    (microsoft.public.access.gettingstarted)
  • RE: .movefile
    ... You should be able to store the file name in a variable after you open the ... 'This example move all Excel files from FromPath to ToPath. ... Dim FromPath As String ...
    (microsoft.public.excel.programming)