Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I create a new VCX of subclasses programatically
Message
De
01/10/1998 16:59:48
 
 
À
01/10/1998 16:55:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00142974
Message ID:
00143033
Vues:
32
>Fred ---
>
>Ta da!!! This is the best way to do it.......
>
>
>LPARAMETERS cOldLib,cOldClass,cNewLib,cNewClass
>SET CLASSLIB TO &cOldLib
>oObject=CREATEOBJECT("&cOldClass.")
>oObject.SaveAsClass("&cNewLib","&cNewClass")
>SET CLASSLIB TO
>RETURN
>
Almost, but not quite! This forces the object to go thru it's INIT code. If you have any way to stop that, this would be the best way!
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform