Skip to main content
Version: 20 R7 BETA

Activated

Activated -> Function result

ParameterTypeDescription
Function resultBooleanReturns TRUE if the execution cycle is an activation

This command is not thread-safe, it cannot be used in preemptive code.

Description

The Activated command (obsolete) returns True in a form method when the window containing the form becomes the frontmost window of the frontmost process.

Note: This command is equivalent to using Form event code and testing whether it returns the On Activate event.

WARNING: Do not place a command such as TRACE or ALERTin the Activated phase of the form, as this will cause an endless loop.

Note: In order for the Activated execution cycle to be generated, make sure that the On Activate event property of the form has been selected in the Design environment.

See also

Deactivated
Form event code