Countdown HH:MM:SS

Ken Ray kray at sonsothunder.com
Wed Jul 20 02:12:21 EDT 2011


On Jul 19, 2011, at 10:00 PM, DunbarX at aol.com wrote:

> Hi.
> 
> 
> Shorter? It already can be pretty short. MUCH shorter? Where's  Colin?

Here's the fastest way I know:

on mouseUp
  DisplayTime
end mouseUp

on DisplayTime
  put the long time into tTime
  convert tTime to dateItems
  split tTime by ","
  put format("%02d:%02d:%02d",tTime[4],tTime[5],tTime[6]) into fld "Time"
  send "DisplayTime" to me in 1 second
end DisplayTime



Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/	




More information about the use-livecode mailing list