There's no specific built-in method for decoding the 128 barcode encoding, but you could do something like this to see the checksum value (generally the next-to-last character in the barcode string):
var s = Make128Barcode("12345"); return s.charCodeAt(s.length-2); But you have to be careful, because the "character set C" encoding in the barcode string is compressed to represent multiple ASCII characters in each barcode character. Also, the actual checksum value may not be the exact code value of the character in the next-to-last position in the barcode string because of substitutions in the Code 128 character set. See: http://www.idautomation.com/code128faq.html#Code-128CharacterSet You can also feel free to look at the source code for all of the barcode functions in Builtins.js to see how they work. Here's a general-purpose function that I find handy for examining strings: function GetChars(str) { if (typeof(str) != "string") return "[not a string]"; var result = ""; for (var i in str) { result += i + ":\t" + str.charCodeAt(i) + "\t"; switch (str.charCodeAt(i)) { case 0: result += "[NULL character]"; break; case 10: result += "[new line]"; break; case 13: result += "[carriage return]"; break; case 9: result += "[tab]"; break; default: result += str[i]; } result += "\n"; } return result; } You can use it like so: var s = Make128Barcode("12345"); return GetChars(s); And it will basically "dump" the string contents when you click Validate. Dan -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --