Altering Value Returned From A Sub-String Follow

0
Avatar
Legacy Poster

In a label we have set up in Bartender, there are a number of sub-strings that print on our label.
For example sub-string ORDNUM returns the order number to the label PONUM returns the purchace order number etc...
What I am trying to do, and failing at miserably, is to return ONLY the last three numbers from the PONUM substring.
Does anyone have any suggestions and examples, I am not a VB guy.

Thanks

1 comments

0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

Are you doing this in VB script from within BarTender?

 

If yes then the following expression will do the trick: Right(Format.NamedSubStrings("PONUM").Value,3)

 

Note that if this is for a multi-line/event based script then prefix the expression with "value=" in order to set the value property of whatever data source will be taking this value. 

Please sign in to leave a comment.