Exiting_Scope - cUIObject

Sent whenever the focus is moving to an object that is outside the current scope

Type: Event

Return Data Type: Integer

Parameters: Handle hoNewScope

ParameterDescription
hoNewScopethe object handle of the scope object to which the focus is to move


Return Value

Returns non-zero if scope-exiting failed


Syntax
Procedure Exiting_Scope Handle hoNewScope Returns Integer

Description

The Exiting_Scope event is sent whenever the focus is moving to an object that is outside the current scope. The message is provided to allow the program to perform any post-processing of scopes.

Procedure Exiting_Scope Handle hoNewScope Returns Integer
    Integer iFail

    Forward Get msg_Exiting_Scope hoNewScope to iFail
    If (not(iFail)) Begin
        Send SaveScopeData
    End

    Procedure_Return iFail
End_Procedure

See Also

OnExitArea | OnEnterArea