DataSwitch Events

Condition

(ByVal Channel as Integer, Decided as Integer, Node as Integer)

This event is generated when you specify Let VB code decide in the Condition dialog.

If your code determines that there is a match for this node (specified by the node parameter), it should set the Decided parameter to True and exit, otherwise pattern matching continues onto the next node. If your code changes the node parameter as well and sets Decided to True , the call is transferred to the node number you set. Nodes are counted from 0, starting from the top node.

A Condition event is possible for each mask that has the Let VB code decide check box set.

Enter

Enter(Channel As Integer, Greeting As Object)

The Enterevent is executed by the control upon call entry. If the GotoNode property is set or the TakeCall method is used, the call exits this control and is handled by the new control after the Exit Sub or End Sub statement. Read more about Enter, EnterB Events.

Exit

Exit(Channel As Integer, Node As Integer)

This event fires when a call leaves a control, but before the Enter event occurs in the destination control. Read more about Exit Event.

VoiceError

VoiceError(Channel as Integer, ErrorType as Integer, ErrorData as Integer, Processed as Integer)

This event fires when a non-fatal error occurs in the control. When this error event occurs, the control generating the event is generally not able to continue normal processing. Read more about VoiceError Event.

Read more about DataSwitch control.