|
Reads data from the input buffer as a string. Call this function to read a specified number of bytes from the input buffer. If there are less than Count bytes in the buffer the function will return with less bytes. If there are zero bytes in the buffer and a timeout is specified, the function will try to read count bytes from the buffer and blocks till count bytes are received or the timeout elapsed. Newer versions of Delphi and C++ Builder are using unicode strings by default. In these versions, the ReadStr mthod reads a string as an unicode string from the input buffer. Use ReadAnsiStr instead of ReadStr to get an AnsiString. Declarationfunction ReadStr(Count: Integer): String; Parameters
See AlsoThbComPort.Timeout, ThbComPort. Read, ThbComPort.Read (2), ThbComPort.ReadAnsiStr |