Barcode Validation

Barcode Validation

Forum member · Mar 5, 2010
Are there any built-in methods to validate a barcode? In my system, I allow the user to input the barcode value. However, an exception is only thrown during the draw() method. Is there a way to validate the value prior to the draw() method? Are there any other methods that I might call that would throw the exception so that I can catch it? Here is what I am currently trying to implement: Try 'instantiate the barcode with user input value 'call a method that would cause an invalid value exception Catch ex as Exception 'instantiate the barcode with a safe value 'set the barcode color to red End Try I want to avoid writing regular expressions to validate every type of barcode. Any help is appreciated. Thanks, Matt

Re: Barcode Validation

Support · Mar 5, 2010
Hello Matt, Currently there is nothing within the API that will validate the barcode at an intermittent state before it the call is made to the Draw method. You will have to do the validation for the barcode value entered by user yourself before it gets passed to our API. Thanks, ceTe Software Support Team