Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Class at Code Level
Message
De
13/06/1999 19:50:33
 
 
À
12/06/1999 11:40:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00229145
Message ID:
00229303
Vues:
16
>Is there any way to change objects class in a form (obviously not at run time), without deleting and recreating ALL the objects. Is teher any program to do that or any way to rewrite the code that comfors a form.
>
>Thank You

The class that the object is derived from is stored in the Class and Classloc fields in the scx file. You can use the scx file as a table and issue commands like:

REPLACE Class WITH "MyNewClass" FOR Class = "MyOldClass"
REPLACE Classloc WITH "c:\classes\NewClasslib.vcx" FOR Class = "MyNewClass"

There are several tools here in the files section to help you do this, but I find it easier to just do it manually. Whichever way you choose, be sure you make a backup first. Seriously.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform