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.
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
I'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).
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.
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...
end if
How using barcode in VFP?
Tom N A
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.
-Dodo Roa-
edgarJface
Hi,
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
Steve
Jim Kat
To print barcodes I use Truetype fonts (don't forget to put an asterisk before and after the barcode text).
superclonito
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.
cheers,
Paul June A. Domag
Phil M
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...
end if
cheers,
Paul June A. Domag