Friday, December 09, 2005 4:07 AMHi!
Help me use barcode in VFP? use ActiveX controls? Where download it?
Friday, December 09, 2005 9:12 AMHi,
Actually when you read a barcode, its just like typing the serial number ended with an enter key. So a normal textbox could handle the inputted barcode just detect if the enterkey was pressed.
Paul June A. Domag
Saturday, December 10, 2005 8:10 AMHi!
No programming done for you to capture a barcode no., what you will do is just to connect the barcode reader device to the CPU on the keyboard port and look for the manual attached to trigger the device.
Sunday, January 08, 2006 1:44 AM
This is true, but most of us don't like the tedious task of hitting the 'enter' key. Is there a way to scan a product and have it come up without further user input required?
Tuesday, January 10, 2006 1:36 PMHi,
The barcode scanner returns a series of integers following an enterkey. So, you can do this without any other user inputs by just detecting the enterkey in a textbox Keypress event. Here's a pseudo-code sample:
// place this in a textbox_keypress event where you are planning to capture the barcode.
if KeyAscii = 13 then // keyascii is the current user key being pressed in the textbox and 13 is the ascii code for the enter key
barcode = thisTextbox.Text // store the inputted barcode number into a variable
// process the barcode...
Paul June A. Domag
Wednesday, January 11, 2006 8:02 AMI'm using USB or PS/2 attached barcode reader. Both readers work as a keyboard. It can be customized on the reader what to send before the barcode and after the barcode. For example if you need a TAB before the barcode and an ENTER after the barcode, it's a simple sonfiguration of the barcode scanner.
To print barcodes I use Truetype fonts (don't forget to put an asterisk before and after the barcode text).