AddEventHandler Data Member Function

Adds an event handler to an existing script event handler entry.

Prototype

int32 AddEventHandler( int32 index, string name, string function, uint32 flags )

Parameters

Parameter Type Parameter Name Documentation
int32indexThe index of the script entry to which you wish to add an event.
stringnameA string containing the name of the event.
stringfunctionA string containing the name of the script language function to execute as the event handler.
uint32flagsSets the event direction flag such as Enum.NED_SendReceive(). This refers to the SPA_eNodeEventDirection enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.