Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add code to object method on form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Add code to object method on form
Divers
Thread ID:
00799170
Message ID:
00799170
Vues:
61
I want to create a listbox or grid on a form dynamically. However, I do not want to create the form dynamically. I need to add code to a method within the listbox that was added to the form. However, in order to do that I have to define the class and one can not add the define class into a method of a form.

Therefore, I would have to store all of the code that dynamically generates the form into a seperate prg. I'd rather not do that. I rather have everything contained within the form.

Is there a way to add an object to a form dynamically using the base class instead of define class and then more importantly, add code to one of it's methods without using the define class code block?
Best Regards,
Lee Roy J. Pitre, Jr, AAS, BA, MS
Pitre Computer Consultant & Associates
http://pitres.us
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform