Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scope of a form's Property Value
Message
From
26/08/2002 10:32:33
Irv Adams
MSC Managed Care, Inc.
Florida, United States
 
 
To
24/08/2002 19:38:12
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00693357
Message ID:
00693640
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform