Field Commands
^FN - Field Number
Assigns number to field for variable data
^FN - Field Number
Overview
The ^FN command assigns a field number to enable variable data substitution. This allows you to create label templates with numbered placeholders.
Syntax
^FNnParameters
- n = Field number (1-9999)
Description
- Creates numbered fields for template-based printing
- Enables data variable substitution
- Multiple labels can use same format with different data
- Used with ^FV to provide variable values
Usage Notes
- Field numbers must be unique within label
- Combine with ^FV to provide data
- Commonly used for batch printing with variable data
- Improves performance in variable data applications
Example
^XA
^FO50,50
^ADN
^FN1^FDDefault Value^FS
^FO50,100
^ADN
^FN2^FDAnother Default^FS
^XZVariable Data Substitution
^FO50,50
^ADN
^FN1^FDProduct: Widget A^FS
^FO50,100
^ADN
^FN2^FDPrice: $19.99^FSThen replace with:
- Field 1 → "Product: Widget B"
- Field 2 → "Price: $29.99"
Related Commands
^FV- Field Variable^FD- Field Data^FA- Field Allocate