Tandy 1000 Basic Reference Manual page 127

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter
10 I
BASIC Keywords
See
ON COM(
)
GOSUB for
more information about communica-
tions trapping.
Example
1 0
COM(1)
O N
2 0
P R I N T "NO
A C T I V I T Y "
3 0
ON COM(1 1 GOSUB 1 0 0
4 0
G O T 0 2 0
1 0 0 P R I N T "YOU
ARE R E C E I V I N G DATA"
Line
2 0 0 R E T U R N
10 turns on a communications trar, on Channel 1. If char-
acters are received on the communications channel, program
control transfers to the subroutine beginning at Line 100. If
there is no activity on the communications channel, Line 20
prints a message, and Line 40 keeps the program in a loop until
there is activity on the communications channel.
125

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents