Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with script

Status
Not open for further replies.

ROSER72

Technical User
Aug 14, 2007
99
ES
Hi,

I'm trying to implement my first scripts with VBA and Reflection x however I would like some advice. Give the follwing script:

Sub PruebaAHA()
' Generated by the Reflection Macro Recorder on 08-31-2009 12:31:07.85.
' Generated by Reflection for UNIX and OpenVMS 14.0.


Const NEVER_TIME_OUT = 0

Dim LF As String ' Chr(rcLF) = Chr(10) = Control-J
Dim CR As String ' Chr(rcCR) = Chr(13) = Control-M
Dim valor As String
Dim a As Integer

LF = Chr(Reflection2.ControlCodes.rcLF)
CR = Chr(Reflection2.ControlCodes.rcCR)


Session.Transmit "ld 20" & Chr(13)
valor = Session.ReadLine
MsgBox valor

End Sub


When the session transmit command is executed and I then use the readline on the message box i receive the string I've send "ld 20" instead of the message "REQ:" which is the next prompt on the terminal. It appears as if the PC is quicker processing the lines that what I receive on the terminal. Any advice?

Thanks in advance,
Roser72
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top