Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I pass & return an array to form
Message
De
18/02/2004 10:18:17
 
 
À
18/02/2004 10:05:00
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00878231
Message ID:
00878305
Vues:
15
One alternative is to pass an object reference to the form you are calling, then use this object reference to set properties or launch methods in the calling form.

For example:

Calling code:
Do form NonModelForm with thisform
Init method of form that is being called:
parameters oCallingForm
thisform.oCallingForm = oCallingForm  && place object reference in a form property
Now anywhere inside of your form you can reference the calling form easily...

Example:
thisform.oCallingForm.UpdateForm()
Of course you can use this to pass an array or any other data type to a method in the calling form.

I've found this design very flexible in updating forms and passing complex data back and forth without parameters or global variables.

Greg


>if you want to return a value from your form you have to do modal your form even you don't return array. So you can declare your array before form and use it in form and after form without any describtion.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform