Jump to content

Barcode 128 custom Function


This topic is 4372 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

Hi,

I have been trying to understand what is wrong with this custom function that I found in

http://www.briandunning.com/cf/957

I have a simple database with about 100,000 records with numbers like 1200103792893 this function works well except that some secuences are not encoded properly. They turn into an invalid character represented as  with all the barcode fonts I've tried.

For example these numbers give me an error, 1200103380473, 1200103382093, 1200103552193 while others like 1200103817993, 1200103819193 and 1200103819693 works fine.

I can post or send by email an example of the database.

I will apreciate any help regarding this issue please.

Thank you in advance,

Julio.

post-106511-0-13097200-1335635039_thumb.

Link to comment
Share on other sites

Did you notice the "Discuss" at the bottom?

Running OS X & FM Pro 11, this function works except that spaces are not encoded properly. They turn into an invalid character (represented as  with all the barcode fonts I've tried).

As a quick solution (I was in a hurry) I just added a substitute line to substitute spaces for the  characters and it seems to work fine.

Kevin OShea, San Jose

April 26, 2011 10:46am

Link to comment
Share on other sites

You can change the CF used in the calculation from

cfCode128 ( pString; pCodeSet )

to

cfCode128 ( Substitute ( pString ; " " ; "_" ) ; pCodeSet )

BTW, what I know about BARCODES structure you could put into thimble. I noticed that this fix didn't work with your example set of numbers with out the SBN preceding them, and it also added to the end some characters.

Lee

Link to comment
Share on other sites

This topic is 4372 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.