Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Want to copy members of parent class
Message
From
11/02/2009 09:47:21
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01380787
Message ID:
01380874
Views:
72
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]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform