MAKES ACTIVE THE SYSTEM OBJECT TIMER NUMBER N
ACTION
The command TIMER_ON N makes active the system object TIMER designated by its number N: the TIMER will trigger periodically.
SYNTAX:
TIMER_ON N
USE ERROR EXAMPLE
rem after 5 seconds, displays each second a number from 1 to 10 then stops
label count
dim i%
rem create a TIMER
timer 1
rem the TIMER is not activated
timer_off 1
on_timer 1,count
rem wait for 5 seconds
wait 5000
rem the TIMER is activated
timer_on 1
end
count:
i%=i%+1
print i%
if i%=10 then timer_off 1
return
TIMER_ON
TIMER_ON N
SEE ALSO
TIMER
ON_TIMER
TIMER_INTERVAL
TIMER_OFF
TIMER_OFF_ALL