Re: Trapping for error and displaying receive buff - WeOnlyDo Discussion board

Re: Trapping for error and displaying receive buff (General questions)

by woddrazen, Friday, December 07, 2007, 22:03 (6196 days ago) @ Eric

Eric,


It's hard to say what's wrong without duplicate it. You can try to find what in received in wodTelenetDLX using Receive Method and send that as next Prompt.

Here is example:
[code]
Telnet1.Execute( & vbCrLf, p5104 )
Telnet1.Send( s51 & vbCrLf)
Debug.Print Telnet1.Receive
Debug.Print Telnet1.Receive
Debug.Print Telnet1.Receive
[/code]

or maybe you can try without Execute Method. Using WaitFor and Send Method. Just like you use Prompt Property and Send Method.

Here is example:
[code]
Telnet1.WaitFor( Select: )
Telnet1.Send( T & vbLf)
Telnet1.WaitFor( (c)Eagle Con&Dev )
Telnet1.Send( e51 & vbLf)
Telnet1.WaitFor( Login User Name? )
Telnet1.Send(vbCrLf)
Telnet1.WaitFor( Login Password? )
Telnet1.Send( s51 & vbLf)
Debug.Print Telnet1.Receive
Debug.Print Telnet1.Receive
Debug.Print Telnet1.Receive
[/code]


Drazen


Complete thread: