Link to home
Start Free TrialLog in
Avatar of judico
judico

asked on

Passing of an array from Form1.h to Form2.h

Suppose an array is created in Form1.h. How can it be passed to Form2.h?
ASKER CERTIFIED SOLUTION
Avatar of amit1978
amit1978
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of judico
judico

ASKER

I had a similar problem in VB.NET. There I solved it by declaring the arrays in the Module1. So far, the only way VC++ allows me to declare String *data[] = new String*[ 1000 ]; is as local. -- doesn't accept it declared outside  __gc or outside public: System::Void button1_Click or even inside public: System::Void button1_Click but outside try.
Avatar of judico

ASKER

I giot it ... this can be done through using static members ...