Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 181
  • Last Modified:

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?
0
judico
Asked:
judico
  • 2
1 Solution
 
amit1978Commented:
you can create the global array which is accessable from form1.h and form2.h

0
 
judicoAuthor Commented:
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.
0
 
judicoAuthor Commented:
I giot it ... this can be done through using static members ...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now