Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>


How to use TVAcomm.ReadBuf

ReadBuf() is a function used to read in one time a buffer of data of a specific size from the serial port.

Example code snippet:
var
  buf: array[0..255] of byte;
begin
  if vacomm1.ReadBufUsed >= 256 then
    vacomm1.ReadBuf(buf,256);
end;
This first checks whether vaComm has minimum 256 bytes of data received and will then read it with one call.