• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1074
  • Last Modified:

Code 128 barcode check digit default

I am programming an automatic check digit calculator for a barcode app, and I'm unsure which value to use for the check digit if the modulo 103 function returns a zero.  Any help is appreciated.  For instance, the value "0B09C2" calculates to a value of 618.  Mod 103 of 618 is 0.  Which ascii character should I display?
0
paragonfoods
Asked:
paragonfoods
1 Solution
 
tncodeCommented:
The ASCII character to apply for a zero depends on what font you are using. Each font vendor uses different locations. For example, refer to http://www.idautomation.com/barcode-faq/code-128/#Code-128CharacterSet
and with this font, the ASCII value is 194, and if you using a font from Azalea, the ASCII value is 206. In any case, it is better to get your font from a vendor (such as IDAutomation or Azalea) that already has the source code written for you, so you don't have to write it from scratch.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now