How To Calculate This S’abonner

0
Avatar
Legacy Poster

Hi there, 
Is there anyway for me to calculate this barcode value into a MOD 10 check digit, i've tried all the build it check digit function, but i could't get the correct answer.

 

725018010801899801000000001 the check digit provided for this string of data is 9

 

Is using UCC/EAN - 128

 

Pls help ^^

 

 

7 commentaires

0
Avatar
Fernando Ramos Miracle
Modérateur
Actions pour les commentaires Permalien

Hello Justine,

 

The predefined function you need (if you wish to use our VB Script) is the one called UccMod10. I've tested your value with a Code 128 barcode and certainly gives me 9.

 

Regards.

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Hi,

 

May i know how did u calculate it?

Cause i tried using UccMod10 but it gives me 4 as the check digit.

0
Avatar
Fernando Ramos Miracle
Modérateur
Actions pour les commentaires Permalien

Hello Justine,

 

I've attached a sample document for you to see (saved with v10.1).

 

I basically generated a barcode object with two data sources, the first one contains the string of data and the second one contains the VB Script with the check digit function.

 

I then named the first data source, and used that name to reference it in the VB Script.

 

Please take a look at the attached file and let me know if you get the desired result.

 

Regards.

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Hi ,

 

Thx it works!!!

 

By the way , what does this statement does "Format.NamedSubStrings"

 

can i be done just only like this ? UccMod10(data)?

0
Avatar
Fernando Ramos Miracle
Modérateur
Actions pour les commentaires Permalien

Hello Justine,

 

In older versions of BarTender it could certainly be done, but in later ones you'll need to use the full path.

 

Please note that you can add a reference to a data source using the link in the "Category" menu from the VB Script assistant dialog.

 

 

Regards.

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Hmm..funny thing is i am using the latest version of BT. V10.1

and it can be done by using this method UccMod10(data)  :unsure: 

0
Avatar
Fernando Ramos Miracle
Modérateur
Actions pour les commentaires Permalien

Hello Justine,

 

Even if it's accepted (you won't get an error most of the time) it's still legacy from older versions, and as you can testify it's not that reliable.

 

Whenever possible please use the full path to reference data from other data sources.

 

Regards

Vous devez vous connecter pour laisser un commentaire.