Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I create a new VCX of subclasses programatically
Message
From
06/10/1998 15:41:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00142974
Message ID:
00144342
Views:
24
>>
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform