Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I create a new VCX of subclasses programatically
Message
From
01/10/1998 16:46:48
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00142974
Message ID:
00143025
Views:
32
Hmmm....it worked on mine, but I don't default to having the Property Sheet open when I open a Designer....Maybe throw an ACTIVATE WINDOW "Class Designer" in front of the RELEASE WINDOW....??

There is *another* possible way to do this but I haven't tested it....In code: Create the new classlib then scan through the old classlib.....SCATTER from old, APPEND and GATHER to new...change properties to reflect new parent class...then close all libs and COMPILE CLASSLIB on the new one.





>>Fred ...
>>
>>THIS WILL WORK!! (big grin)
>>
>>*** SUBCLASS.PRG
>>LPARA cOldClass,cOldClassLib,cNewClass,cNewClassLib
>>SET SAFETY OFF
>>CREATE CLASS &cNewClass OF &cNewClassLib AS &cOldClass FROM &cOldClassLib NOWAIT
>>KEYB "{CTRL+W}"
>>RETURN
>>
>
>Close, but no cigar. If the Property Sheet is active, that's what gets closed, not the class? Sigh. It seems I've set you off on a mission.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform