Re: connection state - WeOnlyDo Discussion board

Re: connection state (General questions)

by woddrazen, Wednesday, July 22, 2009, 21:28 (5602 days ago) @ Kevin Hall

Hi Kevin,


Using Connect Method wodTelnetDLX connects to server. Without calling Connect Method you cannot detect connect errors.

In scripting environments like VBS commands are executed line by line. If some error occur component will return it immediately.

However you can use On Error Resume Next statement and receive error (if there is any) after Connect Method using wodTelnetDLX LastError and ErrorText Property.
[code]...
telnet.Connect
If telnet.LastError <> 0 Then
MsgBox telnet.ErrorText(telnet.LastError)
End If[/code]
If I maybe misunderstand your question can you maybe explain it little bit more and we will try to help you.


Regards,
Drazen


Complete thread:

 

  • connection state - Kevin Hall, 2009-07-22, 20:10 [*]
    • Re: connection state - woddrazen, 2009-07-22, 21:28