Remote-processing CAMBASIC Uživatelský manuál Strana 155

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 208
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 154
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
Zobrazit stránku 154
1 2 ... 150 151 152 153 154 155 156 157 158 159 160 ... 207 208

Komentáře k této Příručce

Žádné komentáře