General information
Category:
Forms & Form designer
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only