Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change in class doesn't change object
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00347473
Message ID:
00347865
Vues:
20
>Christian,
>How are you calling the form? When you say 'Delete the form' where are you deleting the form FROM (bad grammar, I hope the meaning is clear). To get the latest changes in a form class to show you must instantiate the form from the updated class.
>
>Barbara

The form is built with CREATE FORM fMyForm AS cMyFrmClas FROM MyLibrary.
I supposed that when I change cMyFrmClas, I would also change fMyForm. It happened that when I changed the positions of objects in cMyFrmClas, they were also changed in fMyForm, but when I added new Objects to cMyFrmClas, they were not added in fMyForm.
The workaround is to delete the fMyForm.scx file and issue again CREATE FORM fMyForm AS cMyFrmClas FROM MyLibrary.
Maybe I misunderstand the concept of the form.scx files, but I thought that it should work like with subclasses (inheritance).
Christian Isberner
Software Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform