
In modal dialog read data of calling dialog
Sorry if this is a dull question - I don't know the solution and also
couldn't find it in earlier postings.
I have a dialog-based application. In its main dialog I fill an array with
data I get from somewhere.
In the main dialog there is a button which opens a second modal dialog in
which I can view the contents of the array.
My actual solution: In my main dialog I have arMainArray ... I declared an
array of identical structure in the class of the second dialog. When calling
the second dialog I copy all items of the main dialog's array to the array
of the second dialog, then call DoModal.
I am sure this is not the most clever solution. I'd like to have access in
the second dialog to the main dialog's array, but don't know how to code
this. Does anybody have suggestions?
Thank you
Thomas