Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Add a custom method to a listbox
Hi. I have this form, which acts as a general report driver screen. It contains a listbox. The listbox is populated from a database and contains the name of a report. When the user clicks on a report name, and then clicks Print, I want to execute some code that sets up the report (as these are complex reports based on preprocessing and sql queries). I want to be able to set up a new method in the listbox control, to allow me to 'call' that code when the print button is pressed. I have alot of reports and don't want to hardcode 'CASE REPORT=1 do blah blah blah, CASE REPORT = 2, etc.' in the form level custom method. Can anyone clever tell me a way to accomplish this?
Thanks for your help.
Sandi Cassidy
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