Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically Subclassing A Class
Message
De
20/09/2001 01:05:11
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00558534
Message ID:
00558605
Vues:
18
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform