Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Order of Initialization
Message
 
To
09/06/1999 17:51:35
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00227508
Message ID:
00228309
Views:
30
>The inter-dependent things may better be solved in a custom method of the form, which gets called from whenever necessary - form's activate, or control's refresh etc, depending on some condition (like - if your third combo's displayvalue is impty or something like that). This way you have several checkpoints which take care of your combos, and call the check'n'rebuild code, which checks if refresh is necessary.
>
>Though this may sound like an overkill, I've found that such distinct methods serve me well, because soon I discover they should be called from some button's .click, some other textbox's refresh, from the rightclick menu and from a toolbar button. This gives me a little abstraction - the action is in the method, and triggering the action is attached to interface elements.

You are right on target, Dragan. That's the way I operate, too, using an independent custom method to do this sort of job...as you say, you may soon find it re-usable during runtime, and all the code is in one place, which is a big plus, also, outweighing object independence in this situation...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform