Skip to content

Entering - cComActiveXEntryControl_

Fires when the focus is about to move to a new object, sent to the object receiving the focus

Type: Event

Syntax

Procedure Entering

Description

When the focus is about to move to a new object, the exiting event is sent to the object receiving the focus.

If Entering is not overridden, its function is to send the message identified in the value of the Entry_msg property.

This event is used to perform any pre-processing to the object before it receives the focus. Entering is suitable for defining the entry behavior of object classes, while Entry_msg is suitable for object inheritance of entry behavior.

Procedure Exiting Integer iObject returns Integer
    Integer iReturnVal

    Forward Get Msg_Exiting iObject to iReturnVal
    If (iReturnVal) Begin
        Procedure_Return iReturnVal
    End
    If (iObject <> Parent(Self)) Begin
        Get CustomValidationMsg to iReturnVal
    End

    Procedure_Return iReturnVal
End_Procedure