Hello all,

I think I'm hitting the wall here. I've got a bunch of objects which do some
serial port stuff on different ports. The nature of the thing is that I've
got to put some delays between certain functions to allow receiving devices
to have the time to process commands. These are long lists of processes
which require some logic decisions based on responses from the serial
devices.

Right now I've got this, which for one object, does the job:

on waitLoop me,num
     startOfWait = the milliseconds
     repeat while the milliseconds < (startOfWait + num)
          nothing
     end repeat
end

Problem is this handler stops everybody. I found something on DOUG, but that
won't stop the calling script.

Has anyone ever created something like this that only stops the calling
handler from executing.

I'm imagining re-coding using a scheme where I take all my code for these
routines and create a list with "commands" which execute each step in the
code. I'd then create a list processing engine that could be stopped and
restarted by tracking the position in a variable and starting a timeout
object when it encountered a wait command.

Just seems like there should be an easier way.

Anyone have any thoughts on this??

Thanks,

Dennis Flood



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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