Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically Subclassing A Class
Message
From
20/09/2001 01:05:11
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00558534
Message ID:
00558605
Views:
17
>Can someone tell me how to programmatically subclass a class
>from one class library into another class library?

The classic solutino won't work each time:

ox=newobject('class','oldvcx')
ox.saveasclass('newclasslib','newname')

(not too sure of the parameters in the second line, have to check help each time :)

The reason why this may not work is that you may have a class which can't be invoked by newobject(), because of some code in the .init or because it contains bound controls and the tables may not be open, as is most probably the case with forms with private datasessions. You may disable the error checking while you do this.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform