Altering Value Returned From A Sub-String
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
-
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.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar