Skip to main content

Search

Search

Vbscript To Format Weight From Scale

Comments

1 comment

  • Avatar
    Ian Cummings
    Moderator

    It will need to be of a text data type for the particular data source.  I suggest you use the application identifier wizard to create the data sources for your GS1 barcode as it will handle and preconfigure these validation options for you.

     

    When you do this the VB script will be as below.  Note however that the value will be expected to be a valid numeric value with a character filter of: 0123456789.,eE-+

     

    Value = ConvertToEANUCCSevenDigitMeasurement(Value, 3)

     

    If coming from a database field, be sure to set the sample data to be a numeric value in order to avoid a design time error.

    0

Please sign in to leave a comment.