PreviousNextIndex

COM-SELF system handle


(Windows only)

A component handle to the ActiveX object (ActiveX control or ActiveX automation object) that generated the event being handled by the currently executing ActiveX event procedure.

Note: Does not apply to SpeedScript programming.
Syntax

COM-SELF [ :OCX-property-reference | :OCX-method-reference ] 

OCX-property-reference | OCX-method-reference
Example

The following code fragment displays the name and position of the ActiveX control that generates a Click event:

PROCEDURE ANYWHERE.Click: 
  MESSAGE "Clicked control" COM-SELF:Name "at X-position" COM-SELF:Left  
           "and Y-position" COM-SELF:Top VIEW-AS ALERT-BOX. 
END PROCEDURE. 

Notes
See also

PROCEDURE statement, SELF system handle


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex