Results 1 to 8 of 8

Thread: Bar Code recognition VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    3
    I have been given the challenge of creating a new app using VB6.0. This app needs to have the ability to scan products to decrement stock levels, and create sales slips. My problem is I don't know where to start! How does one create an app that can be used with hand held scanners? Any pointers greatly appreciated.

    THIA

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    The way barcode scanners work (at least all the ones I've come across or heard of) is to simulate a series of keypresses from the keyboard, so basically you scan the barcode, with the focus on a textbox, and whatever that barcode represents will be typed into that textbox.

    They are pretty easy to use really, with a little fiddling and advice from here when you need it, I'm sure you'll manage just fine
    Harry.

    "From one thing, know ten thousand things."

  3. #3
    Member
    Join Date
    Nov 1999
    Location
    Manila, Philippines
    Posts
    59

    i agree with harryW. Barcode readers only simulates a series of keypresses. There are, however, several types of barcode readers. There are barcode readers which is connected to LPT1 or to a COM port. The barcode that is the most simple to use is the one connected to the Keyboard connector. This type is the one that simulates the keypress and is very much recommended if you're program resides on a PC. The other types are better used i programs embedded on chips like EEPROM. Check your barcode reader's documentation and goodluck!
    Mikey
    A/P
    Using VB6 SP4 Enterprise Ed.

  4. #4
    Member
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    32

    Talking

    hi rod, I am actually handling this kind of project right now. Mine captures the time in and time out of employees. First of all,you have to take note whether your barcode reader will reside near the computer system of the application program. If the bar code reader is placed less than 1.5m away, you can connect it to LPT1 and read in as a keyboard input using the Keypress event(this is of course easier).
    But if your reader resides more than 1.5m away, you'll have to connect the bar code reader using RS232 and connect it to your commport. If you are reading the input through a commport you'll have to used MS Comm to read the input. Verify with your user on the placement of the reader and check your reader's documentation.

  5. #5
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    RS232 = Serial port
    Harry.

    "From one thing, know ten thousand things."

  6. #6

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    3

    Thumbs up Bar Code Recognition VB 6.0

    Thanks guys. I've got a bit of an idea where to start now. Don't let that stop anybody else from submitting some more ideas though :-)


  7. #7
    Addicted Member
    Join Date
    Jul 1999
    Location
    Portland, OR.
    Posts
    226
    Hi.

    Check this site:

    http://www.planet-source-code.com

    then search for Barcode Or something like this.
    I once saw a good submission(project) for barcode.

    Good Luck.

  8. #8
    New Member
    Join Date
    Sep 2000
    Posts
    1

    Post

    Yes, there are 2 main types - keyboard wedge or serial interface - both are fairly simple to use (Keyboard wedge is VERY simple ) I did a program to monitor our stock for goods in/goods out - using part number b/code and quantity b/code (its an idea to turn off the preceding code (on the scanner) that tells you what type of b/code it is (Int2of5 code128) etc etc - this leaves you with just the string contained within the barcode) to retrieve the data I simply have a couple of textboxes (remembering to setfocus on them after processing the b/codes!) along with a few options it makes a very simple but effective goods in/out monitor - Make sure the scanner you buy is capable of reading the type of barcode you will be using most.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width