Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Want to copy members of parent class
Message
De
11/02/2009 09:47:21
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01380787
Message ID:
01380874
Vues:
71
This message has been marked as a message which has helped to the initial question of the thread.
>Hi
>
>>A subclass inherits everything that parent class has. Why do you need to copy anything?
>
>Yes this is a subclass that I have to enhance. There are already 2 pages (in the pageframe of the form) on the parent class, now I have to add a 3rd page on it. This 3rd page should have some common textboxes and labels on it that are already on page2. I could recreate them but that is unnecessary work for such routine work (neither do these control justify classes of their own) These controls are there only to keep the user in perspective on what current record they are on.
>
>Thanks and regards.

backup vcx
create a page class, add the common controls you need on every page to this clas. Set pageframes MemberClass* properties so that they use the page class.
copy all page specific stuff from the backup

change name property of the pages to something like Page1, Page2

HTH
Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform