This article outlines a few functions that are extremely useful when using the Field Level Scripting in Loftware.
Most of the Loftware commands involving fields on the label require the use of a long string.
Here is a prime example:
It is easy to see how someone could easily mistype this lengthy string.
Functions can be cut and pasted into the script to reduce the required typing.
As a result, the code to assign the data to a variable is as follows:
Functions are best used when a particular command is going to be used multiple times in the script.
How to Implement the Solution
Here are a list of commands and the suggested function.
Page:Error Datasource Name Not Found And No Default Driver Specified (Loftware Print Server Family Knowledge Base)
Loftware version 9.5.3 and above
All supported installation environments.