Zum Hauptinhalt gehen

Suche

Suche

How To Convert Hex And Decimalist In Same One Label Program

Kommentare

2 Kommentare

  • Avatar
    Ian Cummings
    Moderator
    1. Create a decimal serial number like you would do normally. Make sure the "Data Source" dialog is in Advanced mode so that you can also specify a "Share Name" to the data value. In this example I name it: btSerial

    2. Create a second object that uses an event based VB Script for the data source. Edit the VB Script and in particular specify the below expression for the OnSerialize event.

    value = Hex(Format.NamedSubStrings("btSerialNo").Value)

    For BarTender v8.0 you might need to specify the below if the above doesn't work.

    value = Hex(btSerialNo)

    You should also set the value of the object via the OnAutoSelectedEvent event.

    value = Format.NamedSubStrings("btSerialNo").Value

    or

    value = btSerialNo

    3. Note that the Professional edition or above is needed for this solution.
    0
  • Avatar
    Legacy Poster
    Hi Ian C
    Thanks a lot, we resolved this problem now.

    Best regards
    Hans
    0

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