Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add a custom method to a listbox
Message
From
03/08/2000 19:26:51
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Add a custom method to a listbox
Miscellaneous
Thread ID:
00400785
Message ID:
00400785
Views:
52
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
Map
View

Click here to load this message in the networking platform