Reads a specified number of characters from the host.
expression.ReadChars3( _
ByVal As Integer, _
ByVal As Integer, _
ByVal As ReadOption _
) As String
where
expression is a variable that represents a
Screen Object
Parameters
- count
- The number of characters to read. If zero is specified, an empty string is returned.
- timeout
- The time (in seconds) to wait for the specified number of characters.
- option
- A ReadOption value.
Return Value
A string that contains the requested number of characters or all of the characters received prior to a timeout.
This example reads the first 1000 characters received from the host without translating from the PC to the Host character set.
Sub ReadASetNumberOfCharsWithNoTranslation()
Dim charactersReceived As String
'Send a command
ThisScreen.SendKeys "ls"
ThisScreen.SendControlKey ControlKeyCode_Return
'Read the first 1000 characters and do not translate from the PC to the Host character set
charactersReceived = ThisScreen.ReadChars3(1000, 1, ReadOption_NoTranslation)
Debug.Print charactersReceived
End Sub