Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning values from modal form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00333036
Message ID:
00333055
Views:
13
>
>Could you show the code in the calling form that calls the modal form and the code in the called modal form Init that receives the passed value(s) and stores it in the modal form?

Sure:

Calling form's click():
DO FORM forms\calendar_test.scx with 'test_form'


Modal form code-
Init:
LPARAMETER toFormThatCalledMe
ThisForm.Caller = toFormThatCalledMe

ExitButton.Click()
ThisForm.caller.lddate= ThisForm.Cntcalendar1.dcaldate
thisform.release()

The error comes in the "ThisForm.caller.lddate = bla bla" line. Error is that Unknown member Caller.

Hitting suspend, I can see that caller has value, and it is the calling form.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform