Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which methods to use for a listbox?
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Which methods to use for a listbox?
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01104865
Message ID:
01104865
Views:
67
Hi everybody,

I'm going to get control of a form written by my colleague. Going through form's code I see, what there are 5 listboxes on the first page of the pageframe control. All 5 of them have the same (or very similar) code in the following methods:

Click
KeyPress
LostFocus
InteractiveChange.

First obvious idea would be to use a special listbox class with all code inside instead of repeating code for each listbox. But my main problem is to understand why do we need code in each of these methods? Would KeyPress and InteractiveChange be enough?

Thanks for your insights in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform