Denso BHT-200QW Specifikace Strana 137

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 587
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 136
Chapter 9. Event Polling and Error/Event Trapping
129
9.2 Event Polling
[ 1 ] Programming sample
The program below shows the event polling example which monitors the bar code reader and
the keyboard for occurrence of events.
This example uses the EOF and INKEY$ functions to check the data input for the bar code
reader and the keyboard, respectively.
loop
barcod
keyin
OPEN "BAR:"AS #1 CODE "A"
WAIT 0,3
IF NOT EOF(1)THEN
GOSUB barcod
ENDIF
k$=INKEY$
IF k$<>""THEN
GOSUB keyin
ENDIF
GOTO loop
BEEP
LINE INPUT #1,dat$
PRINT dat$
RETURN
:
:
RETURN
Zobrazit stránku 136
1 2 ... 132 133 134 135 136 137 138 139 140 141 142 ... 586 587

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

Žádné komentáře