Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Params in Form Classes
Message
De
16/04/2007 14:16:16
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01216407
Message ID:
01216411
Vues:
15
You should pass an object to form B:
oCallobject=createobject('custom')
oCallobject.addproperty('returnvalue')
=createobject('formb',oCallobject)
....
and you will accept oCallobject in FormB.Init event, and populate Returnvalue property within that form.


>Hi Gang.
>
>I have 2 form classes.
>
>FormA class and FormB class
>
>I have FormA instantiated. It has a property called p_module to track any FormB that may be instantiated from FormA.
>
>Then, when I press a button on FormA, I instantiate FormB from FormB class....
>
>Thisform.p_module = CREATEOBJECT("FormB") ......( where Thisform is FormA ).
>
>Then I run the code right after instantiating FormB...
>
>
>IF TYPE("Thisform.p_module") = "O"
>	Thisform.p_module.show()
>ENDIF
>
>
>Now I can see FormB
>
>When FormB is up, I use it to select a value from a table and THEN I want to send it back to the calling FormA (when closing the FormB)
>
>Since these are class forms, how can I send the value from FormB back to FormA?
>
>
>Thanks!
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform