Random Alpha Serialization S’abonner

0
Avatar
Legacy Poster

The Barcode should read like: ACHKL or any 5 letters the next also randomly 5 letters. It could also be sequencial but prefer random serialization.

How to do this?

How can I use Code 39

I want to use the Barcodes for this:

http://www.foolography.com/barcodes/

4 commentaires

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Personally, I would pre-generate an Excel file with random values. You technically could script this into the format, but it would be less controllable and you couldn't check for duplicates before starting :)

0
Avatar
Domingo Rodriguez
Modérateur
Actions pour les commentaires Permalien

You can try using some VBScripting inside the bar code object in BarTender. I haven't tried this out, but the following VBScript function creates a random 8 character string which contains 1 digit. You would need to modify this in order for getting a 5 character random string:

 

<%
function RandomString()

Randomize()

dim CharacterSetArray
CharacterSetArray = Array(_
Array(7, "abcdefghijklmnopqrstuvwxyz"), _
Array(1, "0123456789") _
)

dim i
dim j
dim Count
dim Chars
dim Index
dim Temp

for i = 0 to UBound(CharacterSetArray)

Count = CharacterSetArray(i)(0)
Chars = CharacterSetArray(i)(1)

for j = 1 to Count

Index = Int(Rnd() * Len(Chars)) + 1
Temp = Temp & Mid(Chars, Index, 1)

next

next

dim TempCopy

do until Len(Temp) = 0

Index = Int(Rnd() * Len(Temp)) + 1
TempCopy = TempCopy & Mid(Temp, Index, 1)
Temp = Mid(Temp, 1, Index - 1) & Mid(Temp, Index + 1)

loop

RandomString = TempCopy

end function
%>

 

However, if you're wishing a unique string to be created each time, you would better go for a serialized string.

 

Do you have basic knowledge of BarTender? Do you e.g. know how to create a Code 39 bar code or how to create a serial sequence?

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Do you have basic knowledge of BarTender? Do you e.g. know how to create a Code 39 bar code or how to create a serial sequence?

Thank you for answering.

No! no basic knowledge and no knowedge on how to create a Code 39 bar code nor how to create a serial sequence.

A 5 letter string is not necesary 3 or any number is OK.

I have not found dode 39 in BarTender.

0
Avatar
Domingo Rodriguez
Modérateur
Actions pour les commentaires Permalien

Let's see if the following Training Videos help you to start creating your BarTender documents:

 

Getting Started with BarTender:

http://www.bartenderbarcodesoftware.com/label-software/training-video-(getting-started).aspx

 

Setting up your blank labels:

http://www.bartenderbarcodesoftware.com/label-software/training-video-(page-setup).aspx

 

Reading Label Data from a Database or Excel Spreadsheet:

http://www.bartenderbarcodesoftware.com/label-software/training-video-(reading-data-from-database).aspx

 

If you've no VBScript knowledge, it might be better that you follow the advice from nRyder.

 

Code 39 (regular or Full Ascii) is available as a bar code standard. You just need to click on the "bar code" drop-down list in BarTender's "object" tool bar and then choose the desired bar code.

Vous devez vous connecter pour laisser un commentaire.