scope question

D

djc

I need both formA and formB to access and manipulate the same dynamic array
variable. FormB is called *from* formA.

1) can I declare it in the load event of formA as public?
2) do I need to declare it in a seperate code module?
3) would either of 1 or 2 work?

thanks in advance.
 
R

Rick Brandt

djc said:
I need both formA and formB to access and manipulate the same dynamic array
variable. FormB is called *from* formA.

1) can I declare it in the load event of formA as public?
2) do I need to declare it in a seperate code module?
3) would either of 1 or 2 work?

Either will work but (1) would require that formA be open whenever formB
tries to access the variable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top