Need Serial Count To Reset Each Day - Possible?
I have a customer who I am setting a label up for. I have sorted an ordinal date (today is day 289 of year 13). Each label they print needs to have that and then count from 00001 for each item they print on that day, as the date turns over tomorrow to 290 I need the serial to start again.
Format to be: 13 289 00001
Can anybody help?
-
BT v10.1 now supports advanced Serialization options, such as resetting a serial number on day change:
http://www.bartenderbarcodesoftware.com/label-software/whitepapers/whitepaper_whatsnewinbt101.pdf
0 -
BT V9.4,How would you reset the serialization count for everytime you send a new batch print job? Thanks for your time. 0 -
With v9.4, you would write a VBScript to reset the serial number when you want (this would emulate what the 10.1 feature does)
0 -
Is there any topic or manual regarding VBScripting? thanks 0 -
Could you please show me how to write this script? Thank you
I would presume that it will be event driven with new print trigger as the event?0 -
You've a full reference on VBScript in BarTender's "Help > Visual Basic Script Help" dialog. I've attached an old VBScript example which resets a serial number (which is read and written to an external text file) on day change. Hope this helps.
0 -
thank you for your reply, is there a way to reference the text (screen data) for serialization so that I can use VB script to reset that?
0 -
Hello charcc63,
To reference a sub string from within a VB script you only need to give it a name (from the "Share/Name" sub tab when selecting that data source) and use the below command in your code:
Format.NamedSubStrings("<SubStringName>").Value
In any case, please note that in the "Script Assistant" Category menu, you've got an option called "Named Sub Strings" where you'll find all the available named sub strings, and by double clicking on any them you can directly add a reference in your code.
0 -
Thank you very much! 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
9 Kommentare