Verify

 

 

This method verifies that the current bar code is valid.

 

Syntax

 

BarCodeWiz1.Verify ([ByVal barcode As String]) As Boolean

 

By supplying the optional barcode value, you may check whether a bar code is valid without changing the bar code value of the component.

 

Dim bResult As Boolean

BarCodeWiz1.Symbology = Code_39 'Change the bar code type to Code 39

BarCodeWiz1.Barcode = "1234ABC"

bResult = BarCodeWiz1.Verify '"1234ABC" is a valid Code 39 bar code (bResult = True)

 

'This line checks for validity of the bar code string

' without setting the value of BarCodeWiz1.Barcode

bResult = BarCodeWiz1.Verify("1234abc") '

If bResult Then

      BarCodeWiz1.Barcode = "1234abc"

End If