Breaking Up Entry With Carriage Returns Using Vb Follow

0
Avatar
Legacy Poster

Hi,

 

New to VB Script here....

 

I'm scanning in a 13 digit barcode, something like 6004544715, and need it to come out:

 

LNP

454

4715

 

I can get the trucation and the prefix of LNP for it to come out "LNP4544715", but need the VB scripting help to break it into 3 lines. Any help would be greatly appreciated.

 

Thanks,

Sean

1 comments

0
Avatar
Domingo Rodriguez
Moderator
Comment actions Permalink

Once you've the value in one line, you could apply the following VBScript (having in mind that you will need a Paragraph text object in BarTender):

 

value = Left (value, 3) & vbCrLf & Mid (value, 4, 3) & vbCrLf & Right (value, 4) 

Please sign in to leave a comment.