Member Login
Search
Jump to a Date
Sponsored Communities
Cool stuff
Twitter Feed
Neat Stuff

Visit our shop for nerds in control lifestyle products.
Thermal Overload
The threads that wouldn't die...
- PC reliability?
- Windows, real time
- PID loops
- PCs vs. PLCs
- Replacing people
- MS 'monopoly'?
- Software quality
- Where do we go from here?
- Why pay?
- PC reliability?
- Windows, real time
- PID loops
- PCs vs. PLCs
- Replacing people
- MS 'monopoly'?
- Software quality
- Where do we go from here?
- Why pay?
Fortune
"I'll rob that rich person and give it to some poor deserving slob.
That will *prove* I'm Robin Hood."
-- Daffy Duck, "Robin Hood Daffy", [1958, Chuck Jones]
That will *prove* I'm Robin Hood."
-- Daffy Duck, "Robin Hood Daffy", [1958, Chuck Jones]
RSS Feed
www.control.com/rss/
To get a personalized feed, become a member at no cost.
from the New Bar Code application department...
visual basic 6.0 procedure for reading a barcode scannerI'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
BobnGeri10 [at] gmail.com
Thanks,
Bob
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
- 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.
Our Advertisers
Help keep our servers running...
Patronize our advertisers!
Patronize our advertisers!




