Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tip of the Day
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Tip of the Day
Miscellaneous
Thread ID:
00278095
Message ID:
00278095
Views:
49
When you run one form from another, in Init() of child form you may access the properties and methods of the parent form directly without passing the parameters - i.e
thisform.someProperty =_screen.activeform.myProperty
or
thisform.someControl.Value =_screen.activeform.someControl.Value
This is based on the fact that when the child form is in its .Init() it is not an activeform yet, because its .Activate() didn't fire so far, so the calling form still stays active at this time.

Nick
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
Next
Reply
Map
View

Click here to load this message in the networking platform