IniSwitch Events

Condition

Condition (Channel as Integer, decided As Integer, node As Integer)

This event is generated when you have specified Let VB code decide in the condition dialog for one or more conditions.

If your code determines that the value matches for the node defined by the node parameter, it should set the Decided parameter to True and exit. The call is then transferred to the control connected to this node. If Decided is left unchanged, pattern matching continues on the next node. If your code changes the node parameter in addition to setting Decided to True, the call is transferred to the node number you set. Nodes are counted from 0, starting from the top node.

You can access the value found in the INI file using the Result property. A Condition event is displayed for each mask that has the Let VB code decide check box set.

EXAMPLE

Sub IniSwitch1_Condition (Channel as Integer, decided As Integer, node As Integer)

If IniSwitch1.Result(channel) = 12345 Then

decided = True

End If

End Sub

Enter

Enter(Channel As Integer, Greeting As Object)

The EnterEvent event 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 EventEnterEvent.

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 IniSwitch control.