Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do form to - cannot return object - unload runs 2x
Message
 
To
15/08/2006 13:25:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01145663
Message ID:
01145672
Views:
18
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform