Title: Math functions, concatenation, variable fields

Discussions:

Demonstration of the use of Math Functions, Concatenation, and Variable Fields


Goals:  

Provide simple examples of working code


Facts or Affected Items: 

EPL2 printers, Forms


Changes:

N/A


Details

Below are some examples using Math functions, concatenating fields and use of variable fields: See the EPL2 manual for latest commands. Must be used in a Form.

If generating barcodes with the Variable field, Click Here for important information.


FK"*"
FI

FK"1"
FS"1"
V00,10,N,"Enter current mileage."
A10,100,0,3,1,1,N,"Current mileage: "V00" miles."
A10,150,0,3,1,1,N,"Change oil at "V00+3000" miles."
A10,200,0,3,1,1,N,"(Answer = 4000)"
PA1
FE

FR"1"
?
1000

FK"2"
FS"2"
V00,10,N,"Enter current mileage."
V01,10,N,"Enter interval mileage."
A10,100,0,3,1,1,N,"Current mileage: "V00" miles."
A10,200,0,3,1,1,N,"Mileage interval: "V01" miles."
A10,300,0,3,1,1,N,"Change oil at "V00+V01" miles."
A10,350,0,3,1,1,N,"(Answer = 1500)"
PA1
FE

FR"2"
?
1000
500

FK"3"
FS"3"
V00,10,N,"Enter Value 1."
V01,10,N,"Enter Value 2."
V02,10,N,"Enter Value 3."
A10,100,0,3,1,1,N,"Value 1: "V00
A10,200,0,3,1,1,N,"Value 2: "V01
A10,300,0,3,1,1,N,"Value 3: "V02
A10,400,0,3,1,1,N,"V00+300+V01-V02-15"
A10,500,0,3,1,1,N,"Answer: "V00+300+V01-V02-15
A10,550,0,3,1,1,N,"(Answer = 1728)"
PA1
FE

FR"3"
?
1000
500
57

FK"4"
FS"4"
A10,122,0,4,1,1,N,"Fixed Text"
FE

FR"4"
P1

 


Notice: Zebra Technologies Corporation makes no representations about the suitability of this documentation for any purpose. It is provided "as is", for your information only, without warranty of any kind, either expressed or implied, including, but not limited to, implied warranties of merchantability, fitness for a particular purpose and non-infringement.

Date Updated:  05/12/2004 03:26:14 PM