# Events declaration

EVENT Identifier ( [ Parameter #1 [ , Parameter #2 ... ] ) [ AS Boolean ]

This declares a class event. This event is raised by a function call.

You can specify if the event handler returns a boolean value. In that case, a `TRUE` return value indicates that the event has been cancelled.

Example

    EVENT BeforeSend(Data AS String) AS Boolean

    ...

    ' Raises the event

    IF BeforeSend("MyData") THEN
      PRINT "Canceled !"
    ENDIF