Results 1 to 2 of 2

Thread: Passing Arrays

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Shelbyville, Ky 40065
    Posts
    1

    Post

    Ok, I have been pulling my hair out for several days now over this and I seem to not be able to do it. I am pulling varibles from the registry and putting them in an array... setting(x).name and it doesnt pass from one module/form to another, the varibles clear when passed. I have tried setting the array public, private, and global inside of all the forms and modules. I am using VB6, what am I doing wrong?

  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923

    Post

    If you are using ReDim at all, make sure you use ReDim Preserve, so it keeps all the data in the array.

    Instead of passing it from one form to another, why don't you just declare the array globally?

    Regards,

    ------------------
    - Chris
    [email protected]
    If it ain't broke - don't fix it

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