Solved

Is it possible to scan a barcode and have an application know which field is intended?

Posted on 2013-06-05
10
518 Views
Last Modified: 2013-06-29
Is it possible to scan a barcode and have an application know which field is intended?
I have a hand-held scanner and lets say that I had 3 different bar codes, would it be possible for me to scan one of the barcodes and the application automatically place the data in the correct field?
I am using VB.NET but will consider C# as well.
 
Thanks!
ps. All hints, ideas and suggestions are welcomed.
0
Comment
Question by:middlefox
  • 4
  • 3
10 Comments
 
LVL 33

Accepted Solution

by:
paulmacd earned 250 total points
ID: 39223362
Not in and of itself.  If the data is sufficiently different - one barcode is text, one barcode is numeric, one barcode is a date - you might just accept the data and populate the field with some logic.  Another possibility is if the data has a prefix or suffix.

That said, it might make sense to presume the barcodes will be scanned in the same order each time.  A, B, C, then back to A, etc.

Another alternative would be to scan a barcode that tells the application which barcode is coming next.  This wouldn't stop someone from telling the application that "barcode A" is being scanned next, then scanning "barcode B", but you can rarely work around all human error.
0
 
LVL 85

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 250 total points
ID: 39223400
Not unless you trapped the barcode entry at a low level before it gets to your application so you could inspect it and decide where it needs to go.  Otherwise it will just go to the currently focused application/control.

See "Distinguishing Barcode Scanners from the Keyboard in WinForms":
http://nicholas.piasecki.name/blog/2009/02/distinguishing-barcode-scanners-from-the-keyboard-in-winforms/
0
 

Author Comment

by:middlefox
ID: 39223590
I am assuming there are ways to write custom code to interpret a scan, but that is the least interesting to me.

I am more interested in having special formatting in the barcode content that helps do more than just put the content into the selected textbox. And the cases I am most interested improving are not our custom apps, they are Epicor. What I am most interested in are conventions that exist that people use out there to solve this kind of problem: scanning multiple fields into multiple text boxes from one barcode in one scan. I believe this is possible with delimiters if the tab order of the text boxes are known… however I am also wondering about solutions that might leverage alt key labeling so that scan order would be irrelevant.

ask your friends if they know.
0
 
LVL 33

Expert Comment

by:paulmacd
ID: 39223873
"What I am most interested in are conventions that exist that people use out there to solve this kind of problem: scanning multiple fields into multiple text boxes from one barcode in one scan."
There may be solutions, but they're proprietary.  I'm not aware of any barcode convention that both defines the data and where it should be stored.  

I'm sure you could do something like that (my note about prefix/suffix above), but there's no standard for it I'm aware of.  I have no doubt it's possible; you'd just have to do it yourself.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:middlefox
ID: 39264031
I've requested that this question be deleted for the following reason:

no real answers, its sad that these are the "experts" of this site.
0
 
LVL 33

Expert Comment

by:paulmacd
ID: 39263685
Several - possibly all - viable solutions ("real answers") were offered for your consideration.  That none of them meet your expectations doesn't make them any less valid; they show your expectations to be unrealistic.  

If you come up with a solution to the question you posed - other than one already proposed by an Expert - feel free to share it and enlighten us.

Regards.
0
 

Author Comment

by:middlefox
ID: 39263825
My expectations were very realistic, trying to get points for a non-answer is not realistic. I found real answers elsewhere. Real answers not theoretical ideas, it was obvious that not a single one of the "experts" had ever worked on such an issue. I found several good solutions, with code examples. I already paid to use the "experts" on this site. I am not sharing my findings, let the "experts" on here figure it out.
0
 
LVL 33

Expert Comment

by:paulmacd
ID: 39264032
I think, if you have a workable solution and can prove it, you could get a refund for the cost of posing the question.  Wouldn't sharing your answer be worth getting your money back?

I've asked a moderator to intercede and give guidance.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now