Remote-processing CAMBASIC Bedienungsanleitung Seite 153

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 208
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 152
Commands - 120
START BIT
Tasking Statement
SYNTAX: START BIT task number [,task number]. . .
PURPOSE: To enable a BIT task that has previously been defined with an ON BIT statement.
REMARK S: You can disable the task using the STOP BIT statement. The START BIT statement will start the
last task that was declared by the ON BIT statement.
If you use START BIT without first defining the task with the ON BIT statement, CAMBASIC
cannot know whether a valid task exists. Attempting to start a nonexistent task will usually produce
nonsense errors.
See the Multitasking Chapter for more information.
RELATED: BIT function and statement, ON BIT, STOP BIT
EXAMPLE: 10 ON BIT 0,0,0 GOSUB 60
20 START BIT 0
30 PRINT "waiting..."
40 DELAY .5
50 GOTO 30
60 IF BIT(0,0)=0 THEN PRINT "closed" ELSE PRINT" open"
70 RETURN
ERROR: < Data out of range> If task number > 7
< Data negative> for task number
Seitenansicht 152
1 2 ... 148 149 150 151 152 153 154 155 156 157 158 ... 207 208

Kommentare zu diesen Handbüchern

Keine Kommentare