GetBarcodes
This function scans barcodes from attachments and returns them in XML format. RegExp function can later be used to extract actual data.
Syntax
GetBarcodes();
GetBarcodes("fileName|fieldName");
Function arguments
- fileName|fielName – (String) [Optional] Name of the file or field from which barcodes are to be scanned. If not provided, all attachments (files) will be scanned.
Return value
This function returns String.
Returns barcode content in XML format. Consecutive barcodes values are stored in consecutive numeric xml nodes i.e: <1>barcode1</1><2>barcode2</2> etc.
Examples
Example 1:
Get barcodes from all attachments and store their values in XML format in 'barcodesXml’ variable.
barcodesXml = GetBarcodes();
Example 2:
GetBarcodes from attachment named 'examplaryFile’ and store their values in XML format in 'barcodesXml’ variable.
barcodesXml = GetBarcodes("examplaryFile");