Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do form to - cannot return object - unload runs 2x
Message
 
À
15/08/2006 13:25:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01145663
Message ID:
01145672
Vues:
19
Paul,

Create the object in form1 just before you call form2 as in;
* Form1 code
oretval_email = createobject("MyEmailClass")

DO FORM form2 with oretval_email
In form2 add a property named oParmObj and in the form's Init put this code ...
* Form2 Init
LPARAMETERS toObj
Thisform.oParmObj = toObj
In the command button's click ...
* Command BUtton click
Thisform.oParmObj.property1 = "Somevalue"
...
Now when form2 is released the object in fomr1 will have the values you set in the button of form2. This is using a parameter object passed to form2 from form1.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform