
Commands - 122
START INP
Tasking Statement
SYNTAX: START INP n [,n1] [,n2]
PURPOSE: To enable one or m ore IN P tasks dec lared by the ON INP statement.
REMARK S: The task parameters are 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: STOP INP, ON INP
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
Komentáře k této Příručce