Member Login
member
passwd
remember me on
this computer.

- join now -
- forgot username or password? -

Jump to a Date

Sponsored Communities
Cool stuff
Select a topic of interest:
...and press:
Neat Stuff
Control.com Stuff

Visit our shop for nerds in control lifestyle products.

Fortune
Valerie: Aww, Tom, you're going maudlin on me ...
Tom: I reserve the right to wax maudlin as I wane eloquent ...
-- Tom Chapin
RSS Feed
RSS feed Use this link to get an RSS feed of the Control.com article flow, for private, non-commercial use only:
www.control.com/rss/
To get a personalized feed, become a member at no cost.
Select a Page Style
Select one of the following styles:
- BluFu
- Classic
(cookies required)
advertisement
from the New Bar Code application department...
visual basic 6.0 procedure for reading a barcode scanner
Application Questions and Problems topic
Posted by R McGill on 1 November, 2009 - 10:30 pm
I'm working on a new application for Bar Codes and need to find some code (Visual Basic 6.0) to read a scanner into a variable.

BobnGeri10 [at] gmail.com

Thanks,
Bob


Posted by Piotr Kowalski on 3 November, 2009 - 6:45 am
Basically, there are two types of barcode scanners:
- with USB, PS2 interface,
- with RS232C interface.

In the first case the scanner works just like an additional keyboard for your PC, so you can set the focus in a text box and it will be filled with the string form the scanner automatically after scanning. Then just read the .Text property of the text box to precess it in your code.

In the second case, you need to use MSComm control to read the string via serial interface. There is plenty of examples for the MSComm on the Net.

Kind Regards
Piotr Kowalski

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2009 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.

Advertisement
Our Advertisers
Help keep our servers running...
Patronize our advertisers!