> hi I send data from a java application to a dlphi one
> using sockets, but when I send a string for example
> '3'
> delphi read it '3'#$D#$A

It means that you Java code send a line (that is append a CR/LF pair [#13#10 is 
CR/LF] to the data
you gave).

> and when i print it on a TEdit it show me only 3 but i can't use it
> what is the problem?

CR/LF is control character that a TEdit is not able to display.
Note that TWSocket "LineMode" can take advantage of the CR/LF pair. When you 
trun LineMode to TRUE,
the component will assemble data received into lines and trigger 
OnDataAvailable only when complete
line (that is anything followed by CR/LF pari) has been assemble, and a 
OnDataAvailable event for
each line, even if the same network packet contains several.

--
[EMAIL PROTECTED]
http://www.overbyte.be


_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to