A loop with post messages

Dave Cragg dcragg at lacscentre.co.uk
Wed Jan 12 06:35:57 EST 2005


On 12 Jan 2005, at 10:25, paolo wrote:

> Anuy of you knows how can I have this loop to work?
> It stops after the first go.
>
>   repeat 3
>     if the opensockets is not empty then resetAll
>     put field "Headers" ....
>     post MESSAGGIO to URL INDIRIZZO
>     put it  & return after message
>   end repeat
>
> Best regards, Paolo
>
Try removing the first line.

   repeat 3
   ##  if the opensockets is not empty then resetAll
     put field "Headers" ....
     post MESSAGGIO to URL INDIRIZZO
     put it  & return after message
   end repeat

Using resetAll (or libUrlResetAll) is generally discouraged. But it 
should never be used in a handler before other statements in the same 
handler  that use libUrl ("post" in this case).

Cheers
Dave 



More information about the Use-livecode mailing list