Start inp – Remote Processing CAMBASIC User Manual
Page 155

Comm ands - 122
START INP
Tasking Statement
SYNTAX:
START INP n [, n 1] [, n 2]
PURPOSE:
To enab le one or m ore IN P tasks dec lared by th e ON INP statement.
REMARK S:
The task parameters ar e defined by the ON INP statement. START INP activates the task.
NOTE: You must execute an ON INP statement first for each corresponding START INP.
You may start more than one task at a time.
RELATED:
S T O P IN P , O N I N P
See the Multitasking Chapter for more information.
EXAMPLE:
This demonstration program can be expanded to do more complex tasks. The state of the input lines
are printed by line 30.
10 ON INP 0,3,7,5 GOSUB 60
20 START INP 0
30 PRINT BIN$(INP(0))
40 DELAY .25
50 GOTO 30
60 PRINT "match"
70 RETURN
ERROR:
< Data negative> – for n
< Data out of range> – if n > 7