UIEnable Event

Applies To   See Also

Occurs for all objects contained within a page whenever the page is activated or deactivated.

Syntax

PROCEDURE Object.UIEnable
[LPARAMETERS nIndex, lEnable]
-or-
PROCEDURE Object.UIEnable
LPARAMETERS lEnable

Parameters

nIndex

Contains a number that uniquely identifies a control if it is in a control array. The nIndex parameter is passed only if the control is in a control array.

lEnable

Contains a logical value that specifies whether the page that the object is contained within is being activated or deactivated. If lEnable is true (.T.), the page that the object is contained within is being activated (becoming the active page). If lEnable is false (.F.), the page is being deactivated (becoming the inactive page).

Remarks

Use the UIEnable event to specify any action you want to occur for an object or control when the page that it is contained within is activated or deactivated.

The UIEnable event does not occur for pages when the form is initially activated. The UIEnable event occurs only when a page is programmatically or interactively activated or deactivated.