Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying Objects from Class to Class
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Copying Objects from Class to Class
Miscellaneous
Thread ID:
00933939
Message ID:
00933939
Views:
77
Is is it possible to copy objects that are members of a parent class from one screen form class to another?

What I have is say a class library called MYBASE.VCX which has my own form, textbox, combo, etc. based on the foxpro base classes. I build a new class library called MYAPP.VCX. I put a form called CUSTOMER in that new library which is based on the form in MYBASE.VCX. I put textbox controls on that form which are based on a control in the MYBASE.VCX class library.

Now let's say I want to make a new form in the MYAPP.VCX again based on the base form in the MYBASE.VCX library. We'll call this form INVOICE. I want to copy the company name, street address, city, etc. textboxes from the CUSTOMER form to the INVOICE form so that their appearance looks the same on both forms without having to go through and add each individual text box one at a time.

When I attempt to copy the textboxes from CUSTOMER I get the message:

Cannot copy objects beacause some are members of a parent class.

Is there any way around this?

Thanks,
Don
Don Knoup
don.knoup@ticomix.com
Ticomix, Inc.
Next
Reply
Map
View

Click here to load this message in the networking platform