Results 1 to 8 of 8

Thread: How to copy an object?

Hybrid View

  1. #1
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: How to copy an object?

    Is your collection only going to contain single numbers? If so, use an array instead of a collection and you can copy that easily enough.

    Regarding your error: h.Add a.Item(x)
    or use a For Each loop, but you'll still need h.Add
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Posts
    146

    Re: How to copy an object?

    Quote Originally Posted by LaVolpe
    Is your collection only going to contain single numbers? If so, use an array instead of a collection and you can copy that easily enough.
    Nope,
    the collection stores objects (defined by class module)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width