Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tip of the Day
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Tip of the Day
Divers
Thread ID:
00278095
Message ID:
00278095
Vues:
50
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform