I hve an app which reads ascii text from a serial port and recognises LF (line feed) as the end of line. I have a problem where one of the interfaces actually produces a single record over two lines. This means I have to process the data after the second LF. How would I modify the following code to take account of this.
procedure TMainForm.nrComm1AfterReceive(Com: TObject; Buffer: Pointer;
EolnChar:=#10; //end of string indicator.
for i:=0 to Received-1 do
//CR detected .... do something
//sSearch := buffer;
sSearch := '';
//else accumulate string ...