Events during opening and closing of form.


Events on FORMS:
Opening a form: sequence of events
When you open a form the following sequence of events occurs:
1. The new constructor on the form is activated.
2. The init method on the form is activated.
3. The init method on the form data source is activated.
4. The run method on the form is activated.
5. The executeQuery method on the form data source is activated.
6. The firstField method on the form is activated.



Closing a form: sequence of events
When you close a form by clicking a Cancel button, the following sequence of events
occurs:
1. The closeCancel method on the form is activated.
2. The canClose method on the form is activated.
3. The close method on the form is activated.
When a form is closed with CloseCancel, user modifications are not saved.
When you close a form by clicking the close button ( ) or an OK button, the
following sequence of events occurs:
1. If the form is closed with an OK button, the closeOK method on the form is
executed.
closeOK is not activated if a close button is used to close the form.
2. The canClose method on the form is executed
3. The leave control sequence is executed.
4. The leave record sequence is executed, if an actual database record is in fact
exited.
5. The close method on the form is executed.

Comments