home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
business
/
kws39e.zip
/
KWDEMO2.BAS
< prev
next >
Wrap
BASIC Source File
|
1991-06-17
|
401b
|
11 lines
10 PRINT "Scan Now:"
20 K$=INKEY$:IF K$="" THEN 20
30 IF ASC(K$)=13 THEN 50
40 X$=X$+K$:GOTO 20
50 PRINT "The variable X$ is now equal to: ";X$
60 END
70 REM This short routine demostrates how to read bar code input one
80 REM character at a time. After running this routine, the variable
90 REM X$ will contain the scanned code. Both bar code and keyboard
95 REM input are possible.