Tech Tip: Understanding events: When does the On Load form event occur?
PRODUCT: 4D | VERSION: | PLATFORM: Mac & Win
Published On: March 21, 2003
Version: 6.7.x, 6.8.x and 2003
This tech tip describes when the On Load form event occurs and clarifies when it does not occur.
Output forms
An On Load event occurs:
- When the form is first displayed
An On Load event does not occur:
- When a user scrolls records in an output form .
- When an output form that has been moved behind another window, is revealed by having its window become the front most (active) window.
Input forms
An On Load event occurs when:
- When the form is first displayed
- When the form is re-displayed due to executing one of the following, though the use of a button or the execution of code: FIRST RECORD, NEXT RECORD, PREVIOUS RECORD, LAST RECORD
An On Load event does NOT occur:
- When an input form that has been moved behind another window, is revealed by having its window become the front most (active) window.
Output forms used as subforms
NO On Load event occurs.
- Input forms displayed by double-clicking a record in an output form used as a subform
An On Load event occurs when:
- When the form is first displayed
- When the form is re-displayed due to executing one of the following, though the use of a button or the execution of code: FIRST RECORD, NEXT RECORD, PREVIOUS RECORD, LAST RECORD
An On Load event does NOT occur:
- When an input form that has been moved behind another window, is revealed by having its window become the front most (active) window.