Difference between revisions of "TWSocket.LineLength"
Jump to navigation
Jump to search
Markus.humm (talk | contribs) (first entry) |
(No difference)
|
Revision as of 10:46, 27 September 2006
Main page -> ICS component reference -> TWSocket -> LineLength
Definition
property LineLength: integer;
Description
LineLength specifies the length of the last received line in characters if the socket is in LineMode. It will normally be used within the OnDataAvailable eventhandler.
Example
procedure TMySocket.MyOnDataAvailable(Sender: TObject; ErrCode: Word); var s :String; // received packet len:Integer; // length of the received packet begin if ErrCode <> 0 then exit; s:=; s:=ReceiveStr; len:=LineLength; if (len < 5) then begin exit; end else MessageBox(s); end;