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.

Leaving a control: sequence of events
When a control is exited, the sequence of events occurs:
1. The leave method on the control is executed.
2. The validate method on the control is executed.
3. The validate method on the data source is executed.
4. The validateField method on the table is executed.
5. The modified method on the control is executed.
6. The modified method on the data source is executed.


Leaving a record: sequence of events
When a record is exited, the following sequence of events occurs:
1. The validateWrite method on the data source is executed.
2. The write method on the data source is executed.
3. The insert (if it is a new record),

Comments