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:46:48
 
 
À
01/10/1998 16:42:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00142974
Message ID:
00143025
Vues:
33
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform