Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create Object from Class With All Properties/Methods
Message
From
08/08/2001 13:20:21
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00541381
Message ID:
00541387
Views:
15
>>I've given up trying to determine why my combobox won't keep the focus, so what I would like to know is what's the easiest way to create a combobox on my form that contains all the properties and methods of the combobox in my class library? I want to cut the link between the class and the instance and recreate a new object on the form with all the class stuff. Thanks!
>>
>>Regards, Renoir
>
>Hi Renoir,
>
>You can use Form's AddObject() or NewObject() method but I don't think you can "cut" the link between class and the instance.

Hey Nick,

I think I need to clarify my question. The way I would do this without knowing a better way would be to create a form that contains a generic combobox (Foxpro's defaul). I would then open up the class combo and start cutting and pasting methods and recreating the properties to get an exact replica of the class except that is is now an object with no relation to the original class. As if the class did not exist and I simply had created the object with all the property and methods. Like doing the reverse of a "Save as Class" when going from an object to a class. Is there a better way to do that?

Renoir
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform