>Hi All,
>
>I was wondering which method is better. If I call a 2nd form from my main form. Should I pass a list of parameters: DO FORM myform.scx WITH parm1, parm2 etc? Or should I open the 2nd form as a property of the 1st form: DO FORM myform.scx NAME mainfrm.newfrm? Thus having access to the properties of the main form from that form? Instead of passing them. Or the old public variable method?
>
>TIA
>Mike
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.
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