Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the return value of a object-created form
Message
From
12/03/2008 12:12:51
 
 
To
12/03/2008 12:02:20
Héctor Lizarraga
Gobierno Del Edo de Querétaro
Querétaro, Mexico
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01301360
Message ID:
01301368
Views:
8
Add a new Form property, I'll call it xReturnValue. Also, make the form Modal
oForm = CREATEOBJECT("MyFormClass")
oForm.Show()
* User works with the form. In the QueryUnload or the close button of the form, save the return value to the form property
xRetVal = oForm.xReturnValue
oForm.Release()
>Hi
>
>How can I catch the return value from a form that is created with CREATEOBJECT?
>
>Thanks in advance
>HAL
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform