Zum Hauptinhalt gehen

Suche

Suche

Custom Hex Barcode Help

Kommentare

1 Kommentar

  • Avatar
    Michael Toupin (mtoupin

    Basically what you'll need to do is create the text and barcode as two separate objects.  Give the text object a sharename so it can be used as a source for the barcode (for this example i've called it 'source').  Then in the barcode use a VB script like this:

     

     data = split(Format.NamedSubStrings("source").Value,"-")

     
    for i= 0 to 3
        data(i) = hex(data(i))
        if len(data(i)) = 1 then data(i) = "0" & data(i)
    next 
     
    value = data(0) & data(1) & data(2) & data(3)
     
     
    basically this does three things, splits the data at the dashes and puts it into an array, checks to make sure that if one of the strings starts with a zero and gets parsed that it contains the leading zero, and then concatenates the strings into a single string.
     
    But this will achieve the result you're looking for.
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.