Share via


Load Event

Occurs just before an object is created.

PROCEDURE Object.Load
[LPARAMETERS nIndex]

Parameters

  • nIndex
    Uniquely identifies a control if it is in a control array.

Remarks

The Load event occurs first for the form set and then for the contained forms. The Load event occurs before the Activate and GotFocus events.

To prevent a form from being created, return false (.F.) from the Load event; the Destroy event will not be executed.

See Also

Activate Event | GotFocus Event | Unload Event

Applies To: Form | FormSet