TIMER_OFF

TIMER_OFF N

MAKES INACTIVE THE SYSTEM OBJECT TIMER NUMBER N

  • Type: Command
  • Parameter: 1
  • Group: System Objects

ACTION

The command TIMER_OFF N makes inactive the system object TIMER designated by its number N: the TIMER will not trigger any longer periodically.

SYNTAX: TIMER_OFF N

  • N = system object number (integer or real). Must be greater than 0 and less than or equal to the allowed maximum number of system objects.

USE

  • The command TIMER_OFF is used to make inactive a TIMER.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of system objects.
  • If number N is less than 0.
  • If system object number N does not exist.
  • If the system object number N is not of the type : TIMER.

EXAMPLE

rem each second, displays a number from 1 to 10 then stops

label count

dim i%

rem create a TIMER

timer 1

on_timer 1,count

end

count:

i%=i%+1

print i%

if i%=10 then timer_off 1

return

SEE ALSO

TIMER

ON_TIMER

TIMER_INTERVAL

TIMER_OFF_ALL

TIMER_ON