Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Parameter
Message
 
 
À
03/12/2001 19:35:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00589020
Message ID:
00589021
Vues:
25
>I'm passing a parameter to a form.
>How can I modify and return my parameter to my calling form without declaring a public variable.
>
>
>thanks

If the form is modal, you can do it in Unload method. Put return thisform.myVal there. You need to call your form with
do form myForm to myVal
syntax. If your form is not modal, there is a trick:

In the calling program: (just an idea):
loForm=newobject('myFormClass','myLib.vcx')
ReturnVal = loForm.myVal
loForm.release()
release loForm
In the form Cancel button you will have thisform.hide() instead of thisform.release() You also need to add Form's property for your return value.

Also see FAQ #7 and FAQ #7810
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform