Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best method?
Message
 
To
04/07/2001 14:56:38
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00526745
Message ID:
00526747
Views:
15
This message has been marked as the solution to the initial question of the thread.
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform