Programming with Reflection

image\rwnprg32.gif CheckEvent method

 

Syntax Event = object.CheckEvent

 

Description

Checks for the occurrence of an event defined with the DefineEvent method.

Return

Event Return type: Integer
Returns the number of the first defined event that occurs after CheckEvent is executed.

Comments:

You can use CheckEventNumber to check for the occurrence of a specific event.

Because this method returns a value but does not take any arguments, some OLE clients generate an error when you try to use this method. If this happens, try appending parentheses to the end of the command. For example:

didItOccur = myobject.CheckEvent( )

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command