How to Determine the Firing Order of Form and Object EventsID: Q136901 The information in this article applies to:
SUMMARYThis article demonstrates how to determine the order in which events and methods are processed for any form.
MORE INFORMATIONUnderstanding the order in which events and methods are processed can help you place event and method code properly.
Step-by-Step Demonstration1. Create a free table that has a single 20-character field. From the 2. Create or open a form for which you want to determine the firing order
3. Place the following code in all the event procedures and methods of the
4. Open the table (Myorder), and run the form. After exiting the form,
The Myorder table will contain a record for each event or method as it was
processed; this is the flow chart for the form.
There are a number of events that occur in any form, in the same order each time. The principal variation will be in the objects and the types of objects. For example, a single command button will differ from a command group where each button within the command group has its own individual Init and Destroy events, among others. The order in which objects are loaded depends on the order in which they were created in the Form Designer. This also dictates the order in which they will be destroyed; they are destroyed in the reverse order of their creation. Additional reference words: 3.00 VFoxWin debugging fire KBCategory: kbui kbprg KBSubcategory: FxotherGeneral |
Last Reviewed: September 19, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |