Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return value from form after creating form in code
Message
 
To
25/08/2002 15:45:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00693423
Message ID:
00693449
Views:
21
Hilmar,

Good idea. I think this may do it, assuming I use a cmdButton as the calling object.

Had another suggestion to use a parameterized object from Sergey on same thread.

I guess there isn't a direct analogue from the "DO FORM... to lcReturnValue" syntax to something like "ofrmMyFormObject.Show() to lcReturnValue".

Thanks for your time on this today.

-- Larry

>OK; I'm not sure this is the easiest way, but I believe you can achieve your purpose as follows:
>
>
  • Let's first suppose you call your custom object from another form. Call it with ThisForm as parameter.
    >
  • In the calendar form, fetch the calling form in Form.Init(), and save it into a form property. Let's say this property is ThisForm.oCallingObject.
    >
  • When closing your calendar form, save a value to ThisForm.oCallingObject.dSelectedDate.
    >
  • Of course, the calling form must have this property.
    >
  • You can also pass any other object as a parameter. Just make sure it has the required property.
    >
    >HTH, Hilmar.
    Larry Tucker
  • Previous
    Next
    Reply
    Map
    View

    Click here to load this message in the networking platform