Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return value from a form based class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00634255
Message ID:
00636821
Vues:
15
Wouldn't this work only if the parameter is passed in by reference ... or have I missed something?

>Pedro,
>
>I use this method, which works for me...
>
>
>* in the calling form...
>private myParameter
>myParameter = .f.
>
>oForm=create('customform',myParameter)
>
>** Then in customform's init method, assign the value to property of same name...
>
>*** CUSTOMFORM::INIT
>Parameters MyParameter
>thisform.myParameter=myParameter
>
>* Then set the value of This.myparameter as necessary in your form.
>* In the form's Unload event, just put in...
>** CUSTOMFORM::UNLOAD
>MyParameter = thisform.myParameter
>
>
>
>... and the value will be returned to the calling form.
>This assumes the form you're calling is a modal form, of course. You can play around with this, but by making it a private variable, you mightn't even need to have the parameter statement in the init method.
>
>Rgds
>MR
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform