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 15:41:04
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
03/10/1998 21:35:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00142974
Message ID:
00144342
Vues:
25
>>
>>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.

Sure, but the original poster insisted on _not_ opening the class designer. Interesting problem, though, because every time I do something interactively in VFP, I wonder if it may be done programmatically, too. This GUI world is getting more and more clickable, and less automatizable, when it comes to automation of _our_ work. Mmmmm... maybe you may know - how to add a new method to a class or form programmatically, from a builder or a wizard, without going to the .scx/.vcx and messing with methods and reserved4 memo fields (or was it 3, I'm bad at remembering names)? There's a dialog in the menu of the form/class designer which does it.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform