hasEvent()

This function checks if an object defines an event.

Synopsis

bool hasEvent(string|shape object[,string eventName);

Parameter

Parameter Description
object The Control++ object.
eventName Name of the event to be checked

Return value

The function returns TRUE when the object defines either the specified event or, in case the "eventName" is not given, any other event.

Description

Returns TRUE when the object defines the specified or any event.

Assignment

Object Oriented Scripting (CTRL++)

Availability

UI