locked
How using barcode in VFP?

    Question

  • Hi!
    Help me use barcode in VFP? use ActiveX controls? Where download it?
    Thanks!
    Friday, December 09, 2005 4:07 AM

Answers

  • Hi,

    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
    Friday, December 09, 2005 9:12 AM
  • Hi!

       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-
    Saturday, December 10, 2005 8:10 AM

All replies

  • Hi,

    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
    Friday, December 09, 2005 9:12 AM
  • Hi!

       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-
    Saturday, December 10, 2005 8:10 AM
  • 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

     

    Sunday, January 08, 2006 1:44 AM
  • Hi,

    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
    Tuesday, January 10, 2006 1:36 PM
  • 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).

    Wednesday, January 11, 2006 8:02 AM