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
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