Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scope of a form's Property Value
Message
De
26/08/2002 10:32:33
Irv Adams
MSC Managed Care, Inc.
Floride, États-Unis
 
 
À
24/08/2002 19:38:12
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00693357
Message ID:
00693640
Vues:
13
Another method, in addition to all the great ideas listed, is to create a Global Application object and wrap all forms within it. This object can be a Container, Custom, etc. and when a Form is launched it is assocated with a Property of the Global object and given a name as in:
(Main.prg snippet...)
oGlobal = CreateObject("GlobalApp")
oGlobal.AddProperty("MainForm","")
DO FORM TARatesCalc NAME oGlobal.MainForm LINKED 
READ EVENTS
Throughout the program this Form will be known by its Property name.

-Irv.

>Is there a way to access the value of a property on a form when a child form is launched? I thought you could access the value of any property by prefacing that property with the name of the form. When I try that, I receive an alias not found error.
>
>Thanks,
>Carmen
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform