bar code Scanners 
Author Message
 bar code Scanners


The other response here is a good start.  I also have an example in my book
(see below), and other information there might be of help.

Richard Grier
Hard & Software
12962 West Louisiana Avenue
Lakewood, CO  80228
303-986-2179 (voice)
303-986-3143 (fax)
Author of Visual Basic Programmer's Guide to Serial Communications.
For information, look on my homepage at
Use the Books link to order from  For faster service, contact
the publisher at http://www.*-*-*.com/ .

Sat, 24 Feb 2001 03:00:00 GMT  
 bar code Scanners
The barcode scanners alway can be set to add a <CR> after the msg.
e.g. It connected to your PC's COM2, the communication speed is 9600.
    A 'Comm' control named Serial2 placed in a form, property 'TThreshold'
is set to 1.
    Wirte code for Serial2_OnComm event:
    static barCode as string
    dim oneCode as string
    select case serial2.commevent
        case comEvReceive
            oneCode = serial2.input
            if asc(oneCode) = 13 then
                if barCode <> "" then
                    Process barCode
                    barCode = ""
                end if
                barCode = barCode + oneCode
            end if
        case else
    end select

You can also write some code in a Timer's events

Sun, 25 Feb 2001 03:00:00 GMT  
 [ 2 post ] 

 Relevant Pages 

1. INFO NEEDED on USING Bar Code Scanner in VB

2. Newbie Q2: Using a bar code scanner with VB

3. Serail Port and bar code scanner acces

4. reading bar code information using a laser scanner

5. TWAIN scanner code to check

6. vb code to use scanner & OCR

7. Scanner code

8. Code to acquire from scanner?

9. vb code to use scanner and OCR

10. Vb code to print 2D bar-code

11. code 39 bar code

12. Bar CODE VBX or Info, CODE, I/O info for VB 3.0


Powered by phpBB® Forum Software