Azalea Software, Inc. www.azalea.com Print Codabar Barcodes in Visual Basic Codabar in VB

Print Codabar barcodes in Visual Basic programs using Azalea Software's barcode fonts. We've already written the necessary functions for your VB programs.

The Codabar character set includes the numbers 0-9, the characters: - + / $ : . with the characters "A", "B", "C", and "D" used as the start and stop bars.

Function AzaleaCodabarA(ByVal yourString as String) as String
' Codabar v6.0 Copyright 2008 Jerry Whiting. Azalea Software, Inc.  www.azalea.com
' This function creates Codabar bar codes using "A" for the start and stop bars.
' Format the output, AzaleaCodabarA, using Azalea Software's Codabar font.
  AzaleaCodabarA = "A" + yourString + "A"
' yourContainer.text = AzaleaCodabarA(yourString)
End Function

Function AzaleaCodabarB(ByVal yourString as String) as String
' Codabar v6.0 Copyright 2008 Jerry Whiting. Azalea Software, Inc.  www.azalea.com
' This function creates Codabar bar codes using "B" for the start and stop bars.
' Format the output, AzaleaCodabarB, using Azalea Software's Codabar font.
  AzaleaCodabarB = "B" + yourString + "B"
' yourContainer.text = AzaleaCodabarB(yourString)
End Function

Function AzaleaCodabarC(ByVal yourString as String) as String
' Codabar v6.0 Copyright 2008 Jerry Whiting. Azalea Software, Inc.  www.azalea.com
' This function creates Codabar bar codes using "C" for the start and stop bars.
' Format the output, AzaleaCodabarC, using Azalea Software's Codabar font.
  AzaleaCodabarC = "C" + yourString + "C"
' yourContainer.text = AzaleaCodabarC(yourString)
End Function

Function AzaleaCodabarD(ByVal yourString as String) as String
' Codabar v6.0 Copyright 2008 Jerry Whiting. Azalea Software, Inc.  www.azalea.com
' This function creates Codabar bar codes using "D" for the start and stop bars.
' Format the output, AzaleaCodabarD, using Azalea Software's Codabar font.
  AzaleaCodabarD = "D" + yourString + "D"
' yourContainer.text = AzaleaCodabarD(yourString)
End Function

You may port these functions to other languages and development tools, so feel free to copy, paste, and edit the code as needed; our sole caveat is that our copyright notice must remain intact. When you port, or if you find a bug or something that needs improvement, please send us a copy so we can learn something new. (Our email address is technicalsupport at azalea dot com …and as always, AtDhVaAnNkCsE!)