Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scope of a form's Property Value
Message
 
To
24/08/2002 21:58:15
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00693357
Message ID:
00693376
Views:
22
Hi Carmen,

> Hello and thank you for the suggestion.

You're welcome!

> I found I am able to access the properties from a parent form by preceding property with the physical form name. In other words if there is a value from the parent form that has to be updated within the child form, the following seems to work

The really good thing :) about what Sergey or I suggested is, that it's more generic and a little cleaner than refering directly back to a form by it's name.

If you once decide to change the name of the calling form, this will break your code in the child form. Using an object reference will always work.

Another advantage of using references is, that should you once decide to use your child form from another parent form, you won't have to make any changes in the child form - as long as both calling forms provide the same interface for the things you need in the child form.

Regards,
Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Reply
Map
View

Click here to load this message in the networking platform