Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I create a new VCX of subclasses programatically
Message
De
06/10/1998 12:46:44
 
 
À
03/10/1998 21:35:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00142974
Message ID:
00144261
Vues:
32
>>>>Fred ----
>>>>
>>>>Try this (two step process):
>>>>
>>>>ADD CLASS oldclassname OF oldclasslib TO newclasslib
>>>>RENAME CLASS oldclassname OF newclasslib TO newclassname
>>>
>>>No, that's a COPY of the class. I need a subclass? Thanks for trying!
>>
>>Off the top of my head:
>>
>>x=createobject("yourclass")
>>x.saveasclass("classname","classlib")
>>release x
>
>
>Try CREATE CLASS [class] OF [classlib] FROM [parentclass]
>
>This will create a new subclass and open the class designer for it.

Hi Ken!

I've tried this method and it does work. I would like to be able to do this without the Class Designer appearing, though. All I'm trying to do is create a set of empty sub-classes of my base classes so the end-user can modify the behavior of my classes with out having the source-code. Know of any tricks, etc., that I could try? I do have it functional with the CD coming up, and keyboarding the commands to exit, but it's kind of tacky. But it is only an in-house utility to create the empty class libs for distribution.

Thanks for any info!
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