Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing prperties of other forms.
Message
De
20/03/2003 16:50:30
 
 
À
20/03/2003 11:38:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00768139
Message ID:
00768354
Vues:
21
>>I have a background menu form ("frmMenuMain"). When I DO the "frmCustomer"
>>and from within "frmCustomer", I'd like to set a property which belongs to "frmMenuMain"
>>
>>How can reference/set a property of another form from within another modal form which is active?
>
>
do frmCustomer with ThisForm
>
>in the 'frmCustomer' form init you then have a pointer to the calling form
>LPara ;
>   CallingForm
>
>CallingForm.CallingFormPropperty = NewValue
>
>
>hope this helps

Another alternative I've seen offered: Because VFP doesn't update _screen.activeform until the very end of the .init, you get the reference to the previous form for free.

Chris.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform