Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best method?
Message
 
To
04/07/2001 15:16:27
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00526745
Message ID:
00526768
Views:
12
>>I usually use
>>
>>DO FORM myform.scx WITH thisform
>>
>>Then the second form gets the object reference to the calling form in INIT() and stores it to it's own property .oCallingForm.
>
>Hi Nick,
>
>Let's see if I get this. In the INIT() you have a parameter 'oPassedFrm'. Then you put this into a property of the 2nd form. Then access evreything through that? THISFORM.oCallingForm.property_of_mainfrm

Yes, that's correct.
Don't forget to assign

THISFORM.oCallingForm = .null.

in form.unload(), so there will be no dangling object reference.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform