Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change the property of form
Message
From
01/07/2001 08:45:23
 
 
To
01/07/2001 02:50:36
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00525665
Message ID:
00525676
Views:
12
>hi,
>i have created 62 forms for one of my project.Now what problem do i have is that i want to change the caption of all forms. I can do it by modiying all forms and change the caption to particular which is "christeen software"
>but what i want is that i should do it to the baseclass of myform so that it will be less working and it will save my time. Even I want to add a property to all my forms which will be faster throught baseclass. please help how can i change the caption of form at one place so that it will be seen all over forms.
>
>please help me.
>
>thanku.


Like Jan said, instead of basing your forms on the VFP Form Base, create your own base class (i.e. the beginnings of a framework), that contains all the methods, properties and behaviors that you like all your forms to inherit.

In this case, your base form class must have:
THIS.Caption = "Christeen Software"
in its Init().

If you are unfamiliar with inheritance and OOP concepts, or on frameworks (commercial or otherwise), there is ample information in the Fox Wiki:
http://fox.wikis.com

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform