ON TIME$

Function

ON TIME$ specifies a routine to be executed at a defined time.

Syntax

ON TIME$ = A$ GOSUB line number

A$ is a string defining the interrupt time

Example

10 ON TIME$ = "12:00:00" GOSUB 1000

Remarks

The executing program will be interrupted at the specified time and execution will begin again in the subroutine beginning at ‘line number’.

The time is checked at the beginning of a new statement, therefore if Basic is waiting on an input, for example, the interrupt will not occur immediately.

Note

ON TIME$ is only effective when HUNTER is powered up.