newbie question

jbv jbv.silences at Club-Internet.fr
Mon Dec 8 08:23:17 EST 2003



Paul,

use the "send" command.

For instance :

global  my_timer
put 60 into my_timer
send "update_timer" to me in 1 seconds

on update_timer
   global  my_timer
   add -1 to my_timer
   put my_timer into fld "Timer"
   if my_timer > 0 then
      send "update_timer" to me in 1 seconds
   end if
end update_timer

JB



> how can I keep a timer running and still allow the application to do other things?
>
> my timer code is just -
>
> put the seconds into Start
>
> repeat forever
>
> wait for 1 sec
>
> put (the seconds - value(Start)) into field "Timer"
>
> end repeat
>
> of course the 'repeat forever'  means nothing else can happen meantime
>
> thanks for any insights
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the Use-livecode mailing list