Read from socket async?
David Vaughan
drvaughan55 at mac.com
Sun Feb 10 19:10:00 EST 2002
On Monday, February 11, 2002, at 12:18 , Dave Cragg wrote:
> Unfair!! It doesn't terminate because I hadn't had coffee and I didn't
> have my glasses on. This is what I really typed. :)
>
> on mouseUp
> global sname
> put zero into lcounter
> repeat 10
> read from socket sname until return with message "dataAdded"
> add 1 to lcounter
> put lcounter - 1 into tCounter
> wait until tCounter = lcounter with messages ##this is the block
> put lcounter into field "f2"
> end repeat
> end mouseUp
Dave
Actually, I had not even read about the "...with messages" option to
"wait..." until you wrote this. Interesting, and yet more good options
in Rev.
Thanks.
David
More information about the use-livecode
mailing list