Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pass/Return Large Array?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00261314
Message ID:
00261320
Views:
19
>I have a modeless form "doing" a modal form where a large (20rowsx21columns) array gets made in the modal form. I now need to return the array back to the calling form. I didn't see anything in past threads about moving this kind of data around, so here I am. :)

Steve,

You can declare the array in the first form just before you call the modal fomr. Let the modal form manipulate the array and wehn it returns the original array will have been changed. This is not the best approach as it seriously breaks encapsulation.

A better approach would be to create an instance of a class in teh calling fomr that has an array property. Pass that instance to the modal form and let the modal form manipulate the array property. When the modal form goes away the instacne of the parameter object in the original form will have the array property as populated by the modal form.
Previous
Reply
Map
View

Click here to load this message in the networking platform