Using "send...in <time>" wirh private commands?

Mark Wieder mwieder at ahsoftware.net
Sat Nov 7 12:41:10 EST 2015


On 11/07/2015 09:13 AM, Richard Gaskin wrote:
> This works:
>
> command SomeTimer
>    DoSomething
>    send "SomeTimer" to me in 500 millisecs
> end SomeTimer
>
> This doesn't work:
>
> private command SomeTimer
>    DoSomething
>    send "SomeTimer" to me in 500 millisecs
> end SomeTimer
>
> I can kinda understand why, but I'd like to be able to manage a timer
> from within a library without exposing the timer to other scripts.
>
> Anyone know of a trick for that?

Nope. That has never worked.
I've resigned myself to making the targets of send and dispatch commands 
public. The only way I can think of to get around this is to make a 
public method that then calls the private one. Same thing with callback 
handlers.

-- 
  Mark Wieder
  ahsoftware at gmail.com




More information about the use-livecode mailing list