CallEventFunction()

Syntax

CallEventFunction (EventID)

Description

Calls the Function for this Event. It calls a function directly, using the Address of a Function provided by a valid EventID.

Keep in mind:
EventID is the unique ID provided by PureBasic's EventMenuID() or EventGadgetID() commands.

Parameters:
The Number of a MenueItem, ToolbarButton or Gadget.

Return value:
The Return value is 1.
This command returns -1 if it fails.
EventConnection - Index