Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>I have a form that creates several objects by programming and i would like to know if there is a way to put source codes into these new objects and how can i save this dynamic form.
You can't directly add code to methods at runtime. But with VFP6 (Sp3?) you could write a Low Level Class Definition, Compile it, and then add those objects to your forms, code and all.
As for saving it? Keep around the class defintions. What you could do is make sure all the controls are put into a container, not directly on the form. Then you could put the same "dynamic" container class anywhere.
BTW, what exactly do you want to achieve? We may be able to suggest a better way.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement