Code 128 - Check Digit フォローする

0
Avatar
Legacy Poster

Hi - I'm new to this forum and relatively new to BarTender.

The question I have is with Code 128 Symbology. My user will be scanning 2 types of barcodes (18 & 8 digits) when an 18digit bar-code is scanned the check digit should be displayed but when an 8 digit bar-code is scanned they do not want the check digit to display. Is there any sort of VB Scripting validation that I can write to remove this check digit when an 8 digit bar-code is scanned?

Thanks
Paul

3 コメント

0
Avatar
Legacy Poster
コメントアクション Permalink

Code 128 does not have a visble check digit. Some people choose to make their own MOD 10 custom check digit to append to the code 128.

If you're already doing that, and your question is how do you not input the final character into the customer's application, I think your solution will be to custom program the scanner.
0
Avatar
Legacy Poster
コメントアクション Permalink

Thanks nRyder, but after a meeting with my user we have sorted the type of barcode I need to use.

Now another issue has arisen - on this particular label I can have two types of a GS1-128 Barcode (formerly UCC / EAN-128), these are seperated by the AI values e.g '00' & '92'. Dependant on which barcode is scanned i.e. SSCC-18 or Internal Company Code I want to suppress the opposite barcode. Is this actually possible to do within Bartender?
0
Avatar
Ian Cummings
モデレータ
コメントアクション Permalink

If you wish to conditionally not print an object, you should click the "More Options" button of that object's data source, select the "VB Scripting" tab and then edit an "OnProcessData" VB Script. In the script essentially what you want to do is to test a condition and depending on the result of that test you either set the value property of the object/sub-string to something, in order for it to print, or nothing if you don't want it to print.

If X = Y Then
value = "123456"
Else
value = ""
End If

When an object has nothing set for its data source it will not print.

サインインしてコメントを残してください。