We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

Barcode scanner and textboxes

ApexCo
ApexCo asked
on
Medium Priority
552 Views
Last Modified: 2013-11-18
Hello.

We are replacing the old barcode scanners we have with a new wireless model. The old scanners would automatically add a CR after the scan and I used this to move between field that were being scanned for a validation check on the chemicals being used. Well the new scanner doesn't do this at all, it reads the barcode fine and just sits there waiting after that.

I had been using the 'leave' event on the textboxes to fire a DB lookup and validate everything, and the trick here is to be able to do this completely hands-free with the scanner. So when the user scans the 1st barcode the leave event would fire and then I would shift the focus to the next field, call the DB lookup and everything was rosy.

Now I did try using the text_changed event, but that won't work because the input from the scanner is coming in like you are typing and after the first char it's moving on and the entire barcode isn't input into the textbox.

So at this point I'm looking for suggestions on how I could either wait out the end of the string coming into the textbox, or something along those lines so I can get the entire barcode input, then move on over to the next textbox automatically without the user needing to use anything else but the barcode scanner.

Thanks!
Comment
Watch Question

Commented:
Are you sure the scanner can't append some characters? What brand scanner is it? We use Symbol scanners where I work. Both wired & wireless. They all are programmable (the wired models by scanning a configuration barcode) so do exactly what you are talking about (append CR/LF chars to the end of each scan).

Do you have the ability to modify the bar codes that you are reading?

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Commented:
agree with ptakja. these settings normally are disabled by default, but if you look though the manual of your scanner, you would most likely find how to set up your scanner append a character or even perform some operations (move to the next field, simulate press-enter, etc).

good luck,
yurich

Author

Commented:
Thanks for the idea and that worked out well. My first time programming a barcode scanner, I had no idea you could make them do so much.

Appreciate the responses.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.