>>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