Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

understanding barcode string data

understanding barcode string data

understanding barcode string data

We are in the process of building a barcode scanning application for product tracking and inventory. This application will be used in our retail stores, distribution centers and warehouses. I have a question regarding the scanned barcode string. We have vendors that will send us product labeled either with UPC or 128 symbology. I understand that the barcode scanner from Symbol doesn’t care what symbology it’s reading and it just passes a string of characters to the application.

How can the application tell if it’s “working” with a UPC or 128 barcode when a label is scanned? Is there a way of checking that in the application by looking at the string data that was just scanned and identify the symbology?

Another question is; will all vendors using 128 or UPC always have a company prefix at certain position and the company prefix will be always n numbers long? Once we identify the symbology from the barcode string we need to identify the vendor so the barcode string can be further parsed.

Thank you.

RE: understanding barcode string data

1st.  Did you get the scanner as part of the package from a 3rd party?
2nd. If you scan their original barcode into Notepad do you see any extra characters?
Watch the screen to see if the cursor moves somewhere down a line or  ???
Are you creating this in a Barcode Program or using a Font?
The first thing is to determine the type of barcode.
Code39 or 3 of 9
Interleaved 2of5
All barcodes can not be created just by typing the characters on a keyboard if you are using a font. Code39 Requires an Asterisk in front *12345*
If you are using Word you have to shut off the Autoformat for Bold in Word
Look in “Tools” menu then “AutoFormat” then click the “Options” button and un-check the box *Bold*  …   (there are two places on those screens!)
Cde128 requires a sophisticated Algorithm.

I think you are making it more complicated than it needs to be. All scanners will read all symbologies.
If you scan a barcode with a USB or keyboard attachment they will put the barcode data wherever the cursor is blinking on the screen, in any program
I suggest you buy one scanner first and get the packages and scan them into Notepad to see what the barcode is.  For a UPC it’s the numbers underneath (human readable)
The UPC for example is the part number of a product.
012345907894 for Heinz Ketchup 16oz Squirt Bottle (not actually I'm just using this as an example)
You can use this as its part number in the database. No other product in the USA will have this same UPC.

So when you go to add items to you database you simply pick up the item
Click the mouse in the part number field or UPC field if the program has one and scan the barcode. Then do the same for the next one.

Same thing for Code128 scan it and see what it shows in Notepad.

DougP, MCP, A+

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close