Common Events


Every component has the following Events.

<>.OnError

Parameters: none
This event is fired each time an error occurs.
Also see Common Properties - Error

<>.OnLog

Parameters: Line: String
This event is fired each time the control addes an entry to the TeleScope.Log.
This event will fire even if the TeleScope.Log.Active property is set to False.

Also see Common Properties - TeleScope

The following Visual Basi example demonstrates how to build a combined log that will contain information for all of the TeleTools controls:

 

Private Sub etLine1_OnLog(ByVal Line As String)

    Text1.Text = Text1.Text + "etLine" + Chr(9) + Line + Chr(13) + Chr(10)

End Sub

Private Sub etPhone1_OnLog(ByVal Line As String)

    Text1.Text = Text1.Text + "etPhone" + Chr(9) + Line + Chr(13) + Chr(10)

End Sub

Private Sub etPlay1_OnLog(ByVal Line As String)

    Text1.Text = Text1.Text + "etPlay" + Chr(9) + Line + Chr(13) + Chr(10)

End Sub

Private Sub etRecord1_OnLog(ByVal Line As String)

    Text1.Text = Text1.Text + "etRecord" + Chr(9) + Line + Chr(13) + Chr(10)

End Sub