Reading from a socket and putting reply into a logfield

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
ivaho
Posts: 37
Joined: Tue Feb 14, 2012 2:19 pm

Reading from a socket and putting reply into a logfield

Post by ivaho » Wed Dec 18, 2013 12:33 pm

Hi,

I'am reading from a socket connection and want to put the received messages in a log field

read from socket "172.27.101.208:5423" until empty
put it after field "logField"
send "readLoop" to me in 50 milliseconds

Whit this code the received data is al put on 1 line

OK&ACK OK&ACK OK&ACK OK&ACK OK&READY......

How to get the mesages recieved on a new line?

Klaus
Posts: 14192
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Reading from a socket and putting reply into a logfield

Post by Klaus » Wed Dec 18, 2013 12:37 pm

Dag ivaho,

well, just add a new line :D
...
put CR & it after field "logField"
...


Best

Klaus

ivaho
Posts: 37
Joined: Tue Feb 14, 2012 2:19 pm

Re: Reading from a socket and putting reply into a logfield

Post by ivaho » Wed Dec 18, 2013 8:21 pm

Klaus,

Thank you for your reply.

What is the best place to look/find these simple commands?

Post Reply