PDA

Click to See Complete Forum and Search --> : Passing Arrays


slickfox
Jan 24th, 2000, 08:15 AM
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?

chrisjk
Jan 24th, 2000, 08:58 AM
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
chris.kilhams@btinternet.com
If it ain't broke - don't fix it :)