Re: Recieve problem - WeOnlyDo Discussion board

Re: Recieve problem (General questions)

by Maverick2004, Wednesday, February 23, 2005, 09:41 (7212 days ago) @ wodSupport

Did a short test with your example code without changing a thing,
but it does not seem to fire correctly there either. If the
connection fails, the code breaks att .Connect and presents a vb/windows error instead of my dialog.

Say if i enter a host that does not exsist, the code breaks with
Run-time rror '11001': Host not found . If the wodSSH1_Connected
event fired i should have gotten my dialog (below )instead, correct?
Or in your example case, CONNECT error: & ErrorText & vbCrLf
[code]
Private Sub wodSSH1_Connected(ByVal ErrorCode As Integer, ByVal ErrorText As String)
If ErrorCode <> 0 Then
MsgBox Error & ErrorCode & has occured: & ErrorText, vbCritical, Connection error
Screen.MousePointer = vbDefault
Exit Sub
Else
wodSSH1.Disconnect
End If
End Sub
[/code]
Cheers!
Maverick


Complete thread: