Skip to main content

Search

Search

Character Substitution

Comments

2 comments

  • Avatar
    Ian Cummings
    Moderator
    Is this a formatting just for the human readable? If so then you should just use the formatting template option under the "Human Readable" tab of the barcode object properties.

    If you want this to be the value of the barcode as well then use the below expression in the OnProcessData VB script.

    [code]
    value = Replace(value, " ", "-")
    [/code]

    Note that "value" in the above expression relates to the current value of the data source. It is that which you wish to format, after sourcing from the database, and not the actual database field itself. Remember that the OnProcessData event essentially allows you to manipulate the value of the data source "value" prior to printing.
    0
  • Avatar
    Legacy Poster
    Thanks Ian. I'm not using the "Human Readable" on the Bar Code field. It's easier for me to just use a straight Text field for Human Readable. But your solution worked for me. I'm glad it was easier than I anticipated. Thanks for your help.
    0

Please sign in to leave a comment.