Hi Richard et al.

When using the send command ,with time, you have to specify an object that you wish to send the message too.

You should be able to use the "to me" syntax if you are sending the message to the object that is issuing the send command.

I changed your script slightly to something like this and it works as expected-

*on mouseUp**
****
**   if the hilite of button "milli" is true then**
**      put "milliseconds" into myTarget**
**   else**
**      put "InternetDate" into myTarget**
**   end if**
****
**   Send "doit" to button myTarget in 10 **
****
**end mouseUp*

Kind Regards,

Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
---


If you wish to
On 19/01/2014 01:03, Dr. Hawkins wrote:
After fighting this for a couple of hours, I finally found that my message
sending of the form


     send "doit " & myTarget in 10

doesn't work properly--the "in 10" is ignored.

Contrary to the dictionary, it appears that it is necessary to specify a
target--otherwise, it is executed immediately, before the new handler
begins.



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to