K
kenny.love
I am currently scanning barcodes into a form. When they are scanned in,
they are in this format:
&d099430500683270
Firstly I would like to know how to strip off the first 2 characters ie
&d
Secondly, I would like to use the last two digits (in this case 70) to
come up with a check digit which would then replace the last two
digits.
In this case, the check digit for 70 is A. Therefore after following
the two conditions above, the barcode would now read:
0994305006832A
The rule for calculating check digits from the last two digits is as
follows:
60 to 69 correspond to check digits 0 to 9
70 to 95 correspond to check digits A to Z 96 corresponds to *
I really don't know where to start on this on. Any help would be
amazing.
Thanks.
they are in this format:
&d099430500683270
Firstly I would like to know how to strip off the first 2 characters ie
&d
Secondly, I would like to use the last two digits (in this case 70) to
come up with a check digit which would then replace the last two
digits.
In this case, the check digit for 70 is A. Therefore after following
the two conditions above, the barcode would now read:
0994305006832A
The rule for calculating check digits from the last two digits is as
follows:
60 to 69 correspond to check digits 0 to 9
70 to 95 correspond to check digits A to Z 96 corresponds to *
I really don't know where to start on this on. Any help would be
amazing.
Thanks.