Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to add data from two separate MDI children

Status
Not open for further replies.

HuntsvilleRob

Programmer
Nov 3, 2010
26
US
Hello. I have an MDI app, one MDI child generates the upper half of a data array, a second MDI child generates the lower half. How can I combine the two halves into one array containing all the data? Thanks for your help!
-Rob
 
Just off the top of my head, I would create the array in the main form. I would then call the array from each child via something like MyMainForm->MyArray . . .. You have to make certain that the child forms can see the main form's objects. Also, I would recommend something other than an array, like a vector, but that is just me.



James P. Cottingham
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top