We'll take a step-by-step look at how to create and make use of a library in Scriptcase.
1º To create an library go to: Configuration —> Libraries
2º In this first window you should select what level you want to create/upload your library.
3º You can upload a file with your script or create a new one.
Click in New.
4º Type the name for the new library, an description and put your code.
In this example we will check if some field is empty.
5º Now you have to enable the library to be used in your app.
Do it in: FORM-->PROGRAMMING-->LIBRARIES
6º In the event ONVALIDATE of the form we will call the function create in our library.
7. Run the application and see the output of the function.