Altering Value Returned From A Sub-String 追蹤

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.


1 意見

Ian Cummings
評論操作 永久連結

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.