Method

IsEventImplemented


Description

Used to determine if a specific event has been implemented (has code) or not.

Usage

result = IsEventImplemented(eventName)

Part

Type

Description

result

Boolean

True if eventName is a valid event; False otherwise.

eventName

String

The event whose implementation state is being determined.

Notes

This method must be called from one of the events or methods of the same class.

Sample code

From the Opening event of a button to determine if the Pressed event is implemented:

If IsEventImplemented("Pressed") then
  MessageBox("The Pressed event is implemented.")
End If

Compatibility

All project types on Linux, macOS and Windows.

See also

Introspection module.