Skip to main content

Search

Search

Converting Weight In String

Comments

1 comment

  • Avatar
    Domingo Rodriguez
    Moderator

    If you're using AI 3202 then you're indeed using periods (the decimal point is at the second position as the last digits of AI 320x indicates).

     

    You can open the properties for the bar code object in BarTender, and then choose the "Net Weight (lb)" Data Source (should be the 4th data source). Now select the "Transforms" tab on the right pane and click on the button close to "Use VBScripting"). You will here see the following VBScript which gets in charge of formatting the data which comes after the AI to the correct decimal position:

     

    Value = ConvertToEANUCCSevenDigitMeasurement(Value, 2)

     

    Before this VBScript line, you could add the one for converting Kgs to Lbs, which I believe is as follows:

     

    Value = Value / 0.4536

    0

Please sign in to leave a comment.