Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Order of Initialization
Message
From
09/06/1999 17:51:35
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
09/06/1999 11:46:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00227508
Message ID:
00228168
Views:
21
>>Even better, it's best to code so that instantiation order (excluding outer containers like a form) does not matter, so the issue never comes up to begin with...
>
>You're probably right. But the scenarios I'm thinking of the rest of the the fields depend on the previous fields of a data-entry form, in which case the Tab and Inits would coincide.

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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform