Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return a value to a main form from a 2nd form.
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00117255
Message ID:
00117257
Views:
15
>I need to have a main form run a 2nd small lookup form. How do I return a value from the 2nd form back to the main form.

If this form is modal then it's pretty simple: you start the form :
Do form myform TO nRetvalue
and return something from Form.Unload event
Return Thisform.Retvalue
If you use modeless form, then you better create custom property in main form and reset this property when you close lookup form:
**Form.Destroy event
oApp.Mainform.Property1="...."
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform