Hi Viv,
thanks for your info. I already read your answer to Steve at home yesterday evening. So I was a bit surprised, that you use other characters than we do. We use Code128/EAN128 since roundabout 1997/98 with the code I posted and none of our customers told us that it wouldn't work anymore. Could it possibly be an old version that is still accepted by barcodereaders?
>>Hi Steve,
>>
>>I don't know exactly which barcode you are talking about. Is it really a UPC Code 128? I know UPS-, EAN- and Code 128, as well as UPC A (11 digits fix)and UPC E (7 digits fix). Whatsoever...
>>
>>Code128 is split into three variations: Code128 A, B and C.
>>
>>Startcode A: chr(192)
>>Startcode B: chr(193)
>>Startcode C: chr(194)
>>Stopsign : chr(200)
>
>Don't think that's correct. The actual values are:
>CODEA 103
>CODEB 104
>CODEC 105
>
>If you were including the start code in an ASCII string you would add 32 (i.e CODEB=136) to get the correct translation.
>
>Stop doesn't have a value as such since it uses 13 bars rather than 11 so can't normally map to a lookup table.
>
>Best,
>Viv
Best Regards
-Tom
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011