APPS: visual basic 6.0 procedure for reading a barcode scanner
The AList
automation at control.com
Tue Nov 3 07:23:18 EST 2009
==> Automation List post by Piotr Kowalski...
To view or reply to this thread: http://www.control.com/thread/1257132656#1257248740
------------------------------------------------------------------------------------
Re: APPS: visual basic 6.0 procedure for reading a barcode scanner
------------------------------------------------------------------------------------
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
------------------------------------------------------------------------------------
==> A Note from the Sender of this Message...
You are receiving this message because a subscription was entered for your address
for the Control.com Automation List. To unsubscribe, send an email to us at
forum at control.com requesting your removal from the subscription list.
This email was sent by:
Control.com, Nerds in Control, LLC,
116 Brigham Hill Rd., N. Grafton, MA 01536, USA.
Copyright 2009 Nerds in Control, LLC. All rights reserved.
Privacy and Legal Notices may be viewed at:
http://www.control.com/about.php
More information about the Automation
mailing list