A class used to describe format variable fields.
Namespace:
ZSDK_API.PrinterAssembly: ZSDK_API (in ZSDK_API.dll) Version: 1.1.123.0
Syntax
C# |
---|
public class FieldDescriptionData |
Visual Basic (Declaration) |
---|
Public Class FieldDescriptionData |
Examples
In CPCL, the description of the following format will contain 2 FieldDescriptionData objects.
The first FieldDescriptionData will contain a FieldNumber of 1, and a FieldName of
null. The second FieldDescriptionData will contain a FieldNumber of 2, and a
FieldName of null.
In ZPL, the description of the following ^FN command will contain 2 FieldDescriptionData objects.
The first FieldDescriptionData will contain a FieldNumber of 15, and a FieldName of
"Address". The second FieldDescriptionData will contain a FieldNumber of 18, and a
FieldName of null.
Copy
! DF SHELF.FMT ! 0 200 200 210 1 CENTER TEXT 4 3 0 15 \\ TEXT 4 0 0 95 \\ FORM PRINT
In ZPL, the description of the following ^FN command will contain 2 FieldDescriptionData objects.
Copy
^XA ^DFR:SHELF.ZPL^FS ^FO25,25^A0N,50,50^FN15"Name"^FS ^FO25,75^A0N,50,50^FN15"Address"^FS ^FO25,125^A0N,50,50^FN18^FS ^FO25,175^A0N,50,50^FN15 ^XZ
Remarks
Note: If a label format contains multiple Field Numbers, only 1 will be returned since the data will be shared
by all variables with the number. The FieldName portion of the variable will be the
last one in the format, unless it is not present. For example, in the format above, there are 3 ^FN15's. The
first 2 have a "prompt" parameter, the third does not. The second one, "Address", overwrites the first one, "Name".
The third one is not present, so the previous one, "Address", is preserved.