ThbComPort.ReadAnsiStr (2)
Unit: hbComm
 

Reads all data from the input buffer as a AnsiString. 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.

Declaration

function ReadAnsiStr: AnsiString; overload;

See Also

ThbComPort.Timeout, ThbComPort. ReadAnsiStr, ThbComPort. Read, ThbComPort.Read (2)