- Created by Unknown User (mvachon), last modified by Unknown User (aduquette) on Mar 02, 2017
The following is an example of a string replacement script developed to allow the passing of a FNC1() character in a .pas or .xml data file. This concept can be applied to other scenarios where character sequences in the data from the input file is not allowed.
How to use a label script to replace a string or character
The following procedure replaces a string or character with another string or character using a label script. This also allows passing of data that is normally not allowed in an .xml file format.
- Set up a scripting field, input field, and a fixed field containing a formula with the replacement character ('FNC1 ()' as shown in the following example).
- Copy the sample script below into a text editor.
- Modify the sample script, using the names of the actual fields on your label.
- Copy the modified script into the scripting field data source window.
For an example, refer to the attached sample label fnc1 replace.lwl.
LLM 126.96.36.199 and later
Any supported LPS Family product environment