Send command question

Richard Gaskin ambassador at fourthworld.com
Sat Jul 20 12:51:01 EDT 2002


>> Your assessment is correct: a 'send' will not execute
>> until the end of the current thread of code.
...
> Thanks for pointing to this. I consider it a bug, a deviation from HC and
> a difficult feature. A send without time parameter should be executed
> instream.
> I always used it in this way.

How about the flexibility of having it both ways?

The send command is only queued for idle time if the "in <timeIncrement>"
form is used.

Any ambiguity can be quickly resolved with a simple test:

--
-- test 1:
--
on mouseUp
  answer "aaa"
  send "doB" to me
  answer "ccc"
end mouseUp

on doB
  answer "bbb"
end doB


--
-- test 2:
--
on mouseUp
  answer "aaa"
  send "doB" to me in 2 secs
  answer "ccc"
end mouseUp

on doB
  answer "bbb"
end doB 

 
-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Custom Software and Web Development for All Major Platforms
 Developer of WebMerge 2.0: Publish any Database on Any Site
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com
 Tel: 323-225-3717                       AIM: FourthWorldInc




More information about the use-livecode mailing list