Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which methods to use for a listbox?
Message
From
16/03/2006 12:05:17
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01104865
Message ID:
01104942
Views:
15
>>>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.
>>
>>Doesn't that depend on the codes inside them?
>>Cetin
>
>All the methods basically do the same thing (except the KeyPress). My colleague explained, that there were some circumstances in multi-select scenario where particular event was called and not the other... That's not entirely convincing, since I would assume that Click will cause InteractiveChange, etc.

Your assumption is wrong.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform