Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pass/Return Large Array?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00261314
Message ID:
00261320
Vues:
18
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform