Script to Change Case to Caps
Description
This article shows you how to change the case of alpha characters to Caps.
Steps
To change the case of all alpha data in a field to Caps, follow these steps:
- Set up a scripting field and an input field.
- Modify the example below using the names of the fields on your label.
- Copy the modified script into the scripting field data source window.
Copy
Script
<pre class="syntaxhighlighter-pre" xml:space="preserve">//input from label
var LowerCase = label.fields.field.(@name == 'Description').@data;
//change the case of alpha characters in string
var UpperCase= LowerCase.toUpperCase();
//output data to label
label.fields.field.(@name == 'Description').@data=UpperCase;</pre>
Article Number
2016015
Versions
Loftware Label A label is a design area on the computer screen where a label format is created or edited. Manager / Loftware Print Server versions 9.5.2.0 - 11.1
Environment
All supported installation environments.