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:
00333075
Views:
15
>>
>>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.
>
>I'm assuming you want to pass an object reference of the calling form to the called form. to do this you don't pass the calling form's name but an object reference of the form:
>
>DO FORM forms\calendar_test.scx with THISFORM
>
>Am I reading you correctly or missing something here?

BINGO!

And while in calendar_test, I want to change the property in the calling form. I can see the need to pass to the calendar_test the property's name too in the future. This way you can call the calendar twice on the same form for 2 different dates. But that is more than I need at this time.

Thanks.

__Stephen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform