scope question

  • Thread starter Thread starter djc
  • Start date Start date
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.
 
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.
 
Back
Top