The following tables show the firing sequence of Visual FoxPro events when a form is in READ compatibility mode, with the form set WindowType property set to 2 (Read) or 3 (Read Modal). The data environment’s AutoOpenTables property is assumed to be set to false (.F.).
| Object | Events |
| Form set | Load |
| Data environment | BeforeOpenTables |
| Form(s) | Load |
| Data environment cursor(s) | Init |
| Data environment | Init |
| Objects 1 | Init |
| Form set | ReadWhen |
| Form set | ReadActivate |
| Form set | ReadShow |
| Form set | Show |
| Form | Show |
| Form set | Activate |
| Form | Activate |
| Object 2 | When |
| Form | GotFocus |
| Object 3 | GotFocus |
| Object 4 | Valid |
1 For each object, from innermost object to outermost container
2 The first object in the tab order
3 If the When event returned true (.T.)
4 As the object loses focus
When a form closes, the READ compatibility event sequence is as follows.
| Object | Events |
| Form | QueryUnload |
| Form set | ReadValid |
| Objects 1 | Destroy |
| Form | Unload |
| Form set | Unload |
| Data environment | AfterCloseTables |
| Data environment | Destroy |
| Data environment cursors(s) | Destroy |
1 For each object, from outermost container to innermost object
For information on the Visual FoxPro event model, see Chapter 4, Understanding the Event Model, in the Programmer’s Guide.