Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change an objects class?
Message
De
01/12/1997 15:35:12
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00063059
Message ID:
00063126
Vues:
56
>>>>Is there a way to change an existing objects base class. ....
>>>>What I need to do now is go back to an old app and change the base classes to
>>>>classes from my class libraries.
>>>The Class Browser will allow you to change a class' parent class. Click the 'Redefine' button.
>>
>>A somewhat less pretty way to do this is to USE the .SCX, and do
>>
REPLACE class with 'newtxt' FOR class='oldtxt'
>>REPLACE classLoc WITH '../classes/newlib' FOR class='newtxt'
>>
and other similar commands. Then, you can MODI FORM and fire off lots
>>of .ResetToDefault methods for the classes where you used to set properties
>>individually, but have since updated the class....
>
>Thanks Garrett. While reading your reply the old lightbulb came on. Sometimes I forget that at the base of just about everything in VFP (forms, reports, menus, etc.) is a table.

Be very careful. Always backup your file before editing the SCX directly.

HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform