Fixed-time timers problem-help!

Fran=?ISO-8859-1?B?5w==?=ois Cuneo francois.cuneo at cuk.ch
Thu Feb 19 00:14:22 EST 2004


Le 18.2.2004 23:41, Klaus Major à klaus at major-k.de a écrit:
Hello Klaus!

Thank you very much for your help, I'll try it.

Friendly!
> Bonsoir François,
> 
>> Le 10.5.2003 22:27, Bryan McCormick à bryan at deepfoo.com a écrit:
>> 
>> Hello every body!
>> 
>> I want to start in a field "timer" with 0:00:10
>> 
>> I click on a button that is "Start Timer"
>> The button change his label as "Stop Timer"
>> 
>> Two seconds after the first clic, I clic again on the button.
>> 
>> I want of course that the field shows "0:00:08"
>> 
>> Is it difficult to do that? With HyperCard and supercard, I was able
>> to do
>> that but with RevolutionŠ
>> 
>> Thank you!
> 
> You can use this li'l function to convert your secs to SMPTE (Lite :-)
> 
> function smpte_lite dauer1
>  set the numberformat to xx
>  put dauer1 div 60 into minu
>  put dauer1 mod 60 into seku
>  return "00" & ":" & minu & ":" & seku
> end smpte_lite
> 
> Use it this way:
> 
> ...
>   put smpte_lite(the secs - the_startsecs) into fld "timer"
> ...
> 
> Hope that helps
> 
>> Amicalement
>> François
> 
> Regards
> 
> Klaus Major
> klaus at major-k.de
> www.major-k.de
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 


Amicalement
François
--------------------------------------------------------------------------

François Cuneo
Au Champ du Pré
1353 Bofflens

e-mail: mailto:francois.cuneo at cuk.ch

Web Cuk New Technologies, programmes éducatifs pour Mac: http://www.cuk.ch
Web CUK, humeurs et tests sur le mac: http://www.cuk.ch/articles

Tél: ++41 (024) 441.17.81
Fax: ++41 (024) 441.17.05





More information about the use-livecode mailing list