Like Cole said, you cannot sit in a repeat loop and wait for the operation to end. Repeat loops in Director are optimized to not let anything else get time.

I have a detailed description of the problem and the solution at:

http://www.furrypants.com/loope

See chapter 14.

Irv

At 3:54 PM +0000 3/4/05, Jayp wrote:
Hi All,
I have another question.

I created a simple behaviour to post to a URL and return a result. It worked perfectly.
However when i transfered this to a Parent Script it does not.


Any ideas?

Heres the code snippet

Regards
Jon


netID = VOID netID = postNetText(URL)

counter = 0

    netID = postNetText(URL,parameters)


repeat while counter < timecount --put counter if netDone(netID) <> False then if netError(netID) = "OK" then counter = 100 return netTextResult(netID) else counter = counter+1 if counter >= (timecount-1) then return "error" end if end if else counter = counter+1 if counter >= (timecount-1) then return "error" end if end if end repeat

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]


--

Multimedia Wrangler.
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[email protected]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to