Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odd firing sequence?!
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00088205
Message ID:
00088290
Views:
29
>>>>>When a formset/form run, the sequence is:
>>>>>
>>>>>1) form init
>>>>>2) formset activate
>>>>>3) form activate
>>>>>4) formset init
>>>>>
>>>>>Is this bizarre, or what?
>>>>
>>>>It should go Form.Init/Formset.Init/Form.Activate/Formset.Activate (actually Formset.Activate is meaningless and should not be used- it fires any time you activate/change active form)
>>>
>>>That's what I expected, too. But try it and you'll see what I mean (at least in vfp5)...kind of strange. I was relying on the formset init to fire before the form activate, and when it didn't, I had to change my code :)
>>
>>Bruce, I tried, in VFP5, right before making the previous reply, so...
>
>(After more testing) I see why the funny order now...I add toolbars to formset and menu to form. Depending on what you add where, you can change the firing sequence to several different orders...perhaps it's best to do everything in one place, like the formset init.

Bruce-
You can also change the firing order by setting focus to a control in the form in an event before the init. Doing so requires the form.activate fire before it was meant to.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform