Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change the property of form
Message
De
01/07/2001 08:45:23
 
 
À
01/07/2001 02:50:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00525665
Message ID:
00525676
Vues:
13
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform