Tandy 1000 Basic Reference Manual page 333

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chawter 10 I BASIC Kevwords
TIME R/Trap
Statement
TIMER action
Turns on, turns off, or temporarily halts timer event trapping.
Action may be any of the following:
ON
enables timer event trapping.
OFF
disables timer event trapping.
STOP
The TIMER
ON
statement turns on the trap. BASIC checks the
the value of timer after each program line. If the number is
equal to that in the
ON
TIMERO GOSUB statement, BASIC
transfers program control to the line number specified.
The TIMER STOP statement temporarily halts timer trapping.
If the timer equals the specified number, BASIC does not trans-
fer program control to the
ON
TIMERO GOSUB statement until
you turn on trapping again by executing a TIMER
ON
state-
ment. BASIC remembers that the timer value was equal and
branches to the subroutine immediately after trapping is turned
on again.
The TIMER OFF statement turns off timer trapping. BASIC
does not remember if the value of timer equals the number spec-
ified when trapping is turned on again.
temporarily suspends timer event trapping.
Sample Program
See ON TIMERO GOSUB for an example.
331

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents