Need help with VB Script for label to print specific text Follow

0
Avatar
Storey, Adam

Hello,

 

I am looking for some help.  i need my label to print the letters INS if the Label_Inspection flag is a 1 and stay blank if the flag is a 0.  the current script that i am using but does not seem to be working is:

ReferenceField("LabelFormat.inspection_flag")
IF Field("LabelFormat.inspection_flag") ="1" Then Value="INS" Else Value=""

Thank you for the help!

 

1 comments

0
Avatar
Shotaro Ito
Comment actions Permalink

The script itself looks fine - have you place the script in Data source > type VB Script > Multiline Script?

Alternatively you can use search and replace transform in Data source > Transform tab
Add 2 actions:
Search for "1" then replace by "INS"
Search for "0" then delete
(search and replace action is available from BarTender Ver10.0)

Please sign in to leave a comment.