Progress
Language Reference


COM-SELF System Handle

Interfaces
OS
SpeedScript
All
Windows only
No

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.

SYNTAX

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

OCX-property-reference | OCX-method-reference

A reference to a valid property or method associated with the ActiveX control.

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


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095