Gets the Value of an EPC Code field
Value of the EPC Code Field
| Exception Type | Condition |
|---|---|
| EPCException | Will throw this exception if an exception occurs while getting the value of a field |
This example shows how to get the Filter Value after parsing an EPC Number.
SGLN sgln = new SGLN(64);
//Encode the SGLN
string epcNumber = sgln.Encode(1,"0652642123458",3,54321);
//Parse the EPC Number
SGLN parsedSGLN = (SGLN)EPCBase.Parse(epcNumber);
//Get the Filter Value
string filter = parsedSGLN.GetFieldValue("Filter");
You can get any field of the EPC Number using this method. To Get a list of available fields see the Fields property.
EPCBase Class | Apostrophe.EPC Namespace