Timer
Posted: Mon Sep 08, 2008 10:29 am
Posso cambiare INTERVAL di un timer attivato?
Grazie
Grazie
Code: Select all
function MyTimerAction()
static nSeconds := 0
if nSeconds++ > GetInterval()
nSeconds = 0
... code to execute ...
endif
return nil
function GetInterval()
do case
case ...
return 10 // wait 10 seconds
case ...
return 20 // wait 20 secondss
...
return 60 // wait 60 seconds