The Visual Basic Script Manager makes it easy to see all your scripts without having to open each individual object and helps you keep easier track of your code.
In today's TekTip, I will be showing you how to use the new VBScript Manager and Library. The VBScript Manager and Library is accessible in LABELVIEW and CODESOFT by clicking on Tools and then selecting Visual Basic Script Manager.
The Visual Basic Script Manager gives you access to all the VBScripts that are on a given template or application from one location. It's a lot easier to manage than having to go into the individual objects or data sources to manage them.
In addition to the Manager, we've introduced a Visual Basic Script Library. This gives you the opportunity to create a library of functions that can be called across all of your labels. Today's library function that we'll be showing off is a message box. You can see here that this function is called MESSAGEBOX, and if I update it here it will impact all the labels that call this function.
If I create a Visual Basic Script on this label within the Script Manager in the OnBeforePrint function to CALL my MESSAGEBOX function, and give it a test, you can see here that it says the verbiage from my MESSAGEBOX in my user library. If I update the information in the user library and save it, close, and go to print our label, you'll see that it updates with the proper information.
The Library really gives us the ability to update things in one spot to impact all the labels that call that function. The Manager makes it a whole lot easier to manage your Visual Basic Scripts on your label.
© Copyright 2022 Teklynx Newco SAS. All Rights Reserved.