Generate a barcode with a Code128 format

Hi experts, can someone explain this code? I've downloaded this in the web, this code generates a barcode using code 128 format, I wonder why this code generates a very long barcode compared to the other programs, when i printed the generated barcode, the scanner have difficulty in reading it, is there a way to recode this so that it will be easily readable and at the same time it will be shortened the width?

'Set the value of the Start Bar (which is the line that the barcode takes as the beginning of a barcode

sBar = "211214"

'This part loops through all the individual characters in the string that is passed into the function and
'compares it individually with each value in the first array and once it finds a match it adds the numeric
'value to the total string (sBar)

Thanks domj, can i replace the values of the arrays? where those values came from? where is the part of the code that makes spaces beetween the bars of the barcode? can i replace it so that the spaces between is bigger than the spaces appears when I print it?

You certainly can replace the values in the arrays although I dare say the script won't work if you do.
I dont know enough about the actual workings of barcodes to be able to tell you where these values have come from however I imagine that they
are the only ones that will work to produce a Code128 barcode. You have not included the part of the script that involves the printing so I cant tell
you how to make the spaces bigger. If you would like to post the rest of the script I can have a look for you.

The Barheight is there, I always change that into lower value, but as far as I understand the code, it makes a image or pic, but when i do resize it the spaces becomes smaller, I'm only printing in an sticker/label size 76 x 194 mm, and I have to print 25 character.

From what I can see there if you decrease barscale (24) to something smaller it should reduce the size
of the barcode horiontally however it sounds like you just want to make the spaces smaller which I dont
think you can do.

SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant.
Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…

Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments.
What Bitcoin is:
Legality:
Risks:
Benefits:
Which businesses are best suited?:
Other things you should know:
How to get started: