Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Barcode 128 custom Function

Featured Replies

  • 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.

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

  • Author
  • Newbies

Hi Lee, thank you for your reply.

I saw it but I dont understand the fix, sorry...

Thank you,

Julio.

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

  • Author
  • Newbies

You are right, the fix doesnt work, what do you mean about the SBN?

The example given in the custom function used SBM in the data entry

cfCode128 ( "SBM16672_2008_08_25"; "B" )

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.