Keep in mind that some barcode symbologies (such as UPC, etc.) REQUIRE a checksum character at the end.
Using a simple barcode font will indeed automatically convert human readable characters into a barcode font 'character', but it will not auto-generate the checksum character.
Additionally some barcode symbologies such as Interleave 2 of 5 will 'interleave' 2 characters into the physical space typically occupied by 1 character. To do that you will need to ALWAYS send it pairs of characters.
I might suggest that you consider locating "known", good barcodes so that you can test your VFP newly generated barcodes against an industry standard and, in so doing, be able to test the viability of the VFP generation.
Good Luck,
JRB-Bldr
VisionQuest Consulting
Business Analyst & CIO Consulting Services
CIOServices@yahoo.com
** Copy this code into a .prg file
** and use it to add the
** check digit.
** (RTurek)
FUNCTION Code128
PARAMETER CodeValue
mDigit=103
FOR m=1 to LEN(ALLT(CodeValue))
mDigit=mDigit+((ASC(SUBSTR(CodeValue,(m),1))-32)*(m))
ENDFOR
mChk_digit=MOD(mDigit,103)+32
DO CASE
CASE mChk_digit=32
mChk_digit=192
CASE mChk_digit=39
mChk_digit=193
CASE mChk_digit=96
mChk_digit=194
CASE mChk_digit=127
mChk_digit=195
CASE mChk_digit=128
mChk_digit=196
CASE mChk_digit=129
mChk_digit=197
CASE mChk_digit=130
mChk_digit=198
CASE mChk_digit=131
mChk_digit=199
CASE mChk_digit=132
mChk_digit=200
CASE mChk_digit=133
mChk_digit=201
ENDCASE
PS the font we used specifically is Code128A (C128att2.ttf) and the size matters! We use font size 18 & style regular. You can play with other sizes but trust me its a pain in the butt. Also we use the expression above in a field type and sometimes duplicate 2 to make the barcode taller. If you have any questions just ask.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.