Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Method Name
Message
 
 
To
13/11/2008 11:25:27
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01361561
Message ID:
01361700
Views:
15
>>>Hi everybody,
>>>
>>>I have a 3 comboboxes on a form. When I select value in combo1, I want to update combos2 and 3 to show only relevant values. Same thing for combo3 which is dependent on combo2.
>>>
>>>My question is - how should I name the method(s) that would re-populate my combo2 and 3?
>>>
>>>Thanks in advance.
>>
>>The name isn't really important, is it? For that matter you don't need to call other methods. You could issue the requeries of combos 2 and 3 in the combo 1 LostFocus. Changing the value of combo 1 is what actually triggered the requeries, so it seems like an appropriate place to do it.
>
>You would definately want to setup methods to be called from within the combo1 method. Remember, each method should perform 1 function and return. Therefore, you need the method for combo1 and the methods for combo2 and 3. In OOPyou want to think "separation of concerns".

I do know something about OOP. (Did not mean that as conceited as it sounded). In this case the event is changing the value of combo 1, no? That is what causes the set of relevant values of combos 2 and 3 to change. It's not the same thing as when you are in combos 2 or 3 and change their values. IMO anyway....
Previous
Reply
Map
View

Click here to load this message in the networking platform