Atozed Forums

Full Version: idtcpclient EOL Customize
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, can idtcpclient End of line be customized ?

currently its #13#10 

is there any property to modify that ?
(07-05-2020, 03:24 PM)Madammar Wrote: [ -> ]Hi, can idtcpclient End of line be customized ?

currently its #13#10 

is there any property to modify that ?

No, it is hard-coded, as most line-based Internet protocols use CRLF. However, you don't have to use WriteLn(), you can use Write() instead, then you can use whatever terminator you want, eg:

Code:
const
  MyTerminator = #10; // or whatever you want

IdTCPClient1.IOHandler.Write('some text' + MyTerminator);