Tuesday, July 1, 2014

Zebra EPL - Truncate text field

Zebra ZPL has this neat TB command which limits the field bounds. EPL doesn't seem to have this kind of feature. Here's how I've been able to do this. Place all the text fields in a form and use a variable with a maximum length:
V00,35,L,"" 
A600,30,1,4,6,2,N,V00 
A310,850,1,c,2,2,N,"ACCEPTED" 
?
1234567890123456789012345678901234567890
The result is:
1234567890123456789012345
ACCEPTED