Hi Michael,

> put the timeoutlist
> -- [timeOut("wiper")]
> 
> g = "timeout(" & QUOTE & "wiper" & QUOTE & ")"
> put (the timeoutlist).getPos(g)
> -- 0
> 
> If ((the timeoutlist).getPos(g)) <> 0) then -- doesn't work either
> 
> Somehow, some way, I should get 1.  What gives?
> 
> Put the timeoutlist[1] works, but I need to access by name, 
> not item, because there may be more than one timeout going 
> on.  Any ideas?

If you need to access it by name, why not simply use:
put timeOut("wiper")

Example:
timeOut ("wiper").new(1000, #test)
put timeOut("wiper")
-- timeOut("wiper")
put timeOut("wiper").period
-- 1000



If you need to find out if the timeout is active, you can use it's
timeOutHandler property: it will be returned as #timeOut for unexisting
timeouts. Or you can use the period property, which will be 0.
For some reason, if you put a nonexisting or forgotten timeout in the
message window, you will not get a void, but you can use either of those
properties instead.

Regards,
Karina Steffens
Creative and Technical Designer
http://www.neo-archaic.net

[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