Skip to main content

Search

Search

VB Script

Comments

3 comments

  • Avatar
    Shotaro Ito

    Dear Scott,

    Name each data sources as usercost1, usercost2 and usercost3.

    Create a text with VB Script data source. Select Multiline script.

    Value = usercost1 * usercost2 + usercost3

     

     



    0
  • Avatar
    Steven H

    Hi,

    When I do this the printer no longer prints the label.  Here is my VB script

    Value = Format.NamedSubStrings("TrackedItemNetWeightAndUom").Value / Format.NamedSubStrings("TrackedItemUnitsAndUom").Value 

    Is it because they are different Unit of measure?  One is in Lb s and the other is in by units.

    0
  • Avatar
    Shotaro Ito

    Check if there's any error message.
    If the data contains "Lb" or "units" such as "10lb" ÷ "5units", that will cause error, so make input data to plain number like "10" ÷ "5".
    You could filter out non numeric value by Datasoruce's transform tab > character filter.

     

     

    0

Please sign in to leave a comment.