codeBarGenerator is a class that generates barcodes.
It is written in B4X and is compatible with B4A, B4i and B4J.
At the moment the class only generates barcode in EAN13, UPC-A and CODE128-B format, you can modify the class and improve it even more.
Versions
V1.02 - barcode in CODE128-B...
Generate random valid EAN13 barcode string:
Public Sub BarcodeEAN13() As String
Dim brcod As String = Rnd(100000000,214000000)
brcod = "950" & brcod '<<< change the beginning 3 digits according country, see: https://en.wikipedia.org/wiki/List_of_GS1_country_codes
Dim x As...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.