I have an array in one form that I want to use in another, but I can't declare an array publically, so what's the best way of making the data in the array accessible to other forms/modules/etc.
Cheers.
I have an array in one form that I want to use in another, but I can't declare an array publically, so what's the best way of making the data in the array accessible to other forms/modules/etc.
Cheers.
you can try creating a module and create a function in that which will return the array filled with whatever youre after.
how come you cant declare it publicly though?
eeeenteresting pinky.
i would have a play with vb myself, but i havent got it on this machine
OK, so I read that error message one more time and noticed "object module."
So, in the IP_UTILS module I'm using (a nice little freeware module for ping utilities and such) I stuck the declaration in there - as it's not an object module.
Kablamo! It works.
Cheers anyway guys, lol.
There are currently 1 users browsing this thread. (0 members and 1 guests)