Creates or reads the information of a barcode.
Usage example
-
Archives administration:
Facilitate the separation and indexing of documents that have been imaged in batch scanning applications.
-
Healthcare industry:
Patient identification (to access patient data, including medical history, drug allergies, etc.)
-
Pharmaceutical industry:
Identify, secure and track products to deal with competitors who want to market counterfeit or fake goods.
-
Retail industry:
Help track items and also reduce instances of shoplifting involving price tag swapping.
-
Tag reader:
Use barcodes to connect customers from your offline marketing materials to information, entertainment, and interactive experiences on their smartphones.
Description
Generates an image containing the barcode according to the data and format specified by the user, and returns the image path.
Supported on mobile client only.
Syntax
barcode
.of_create
(
value string as_data
, value integer
ai_format
, ref string
as_filepath
)
barcode
.of_create
(
value string as_data
, value integer
ai_format
, ref string
as_filepath
, ref blob
ablb_data
)
Argument Type |
Argument |
Description |
---|---|---|
eon_mobile_barcodeex |
|
The name of the eon_mobile_barcodeex object. |
string |
|
Sets the data of a barcode. |
integer |
|
Sets the format of barcode. |
string |
|
Returns the path of the generated barcode image in the application sandbox's "plugin" directory. |
blob | ablb_data |
Returns the data of the generated barcode image. |
Following is the list of supported barcode formats:
Data |
Format |
Specification |
---|---|---|
0 |
Unknown |
|
1 |
EAN-2, GS1 2-digit add-on |
It is a supplement to the EAN-13 and UPC-A barcodes. It is often used on magazines and periodicals to indicate an issue number. |
2 |
EAN-5, GS1 5-digit add-on |
It is a supplement to the EAN-13 barcode used on books. It is used to give a suggestion for the price of the book. |
3 |
EAN-8 |
It is the short version of EAN-13. An EAN-8 number contains 7 digits of message plus 1 check digit. The first two or three digits identify the numbering authority, and the remaining 4 or 5 digits identify the product. |
4 |
UPC-E4 |
It is the short form representation of a UPC-A number. It reduces the data length from 12 digits to 6 digits by compressing the extra zeros. It is suited for identifying products in small packages. |
5 |
ISBN-10, from EAN-13 |
It is printed in human-readable form above the EAN-13 bar code. |
6 |
UPC-A |
It is the most common and well-known symbology in the US, which consists of four areas: 1) The number system; 2) The manufacturer code; 3) The product code; 4) The check digit. |
7 |
EAN-13 |
It is a superset of UPC-A. Any software or hardware capable of reading an EAN-13 symbol will automatically be able to read an UPC-A symbol. |
8 |
ISBN-13, from EAN-13 |
It is printed in human-readable form above the EAN-13 bar code. |
9 |
COMPOSITE, EAN/UPC composite |
It is the specification for a 2D barcode symbol included above a DataBar, UPC, EAN or Code 128 barcode to encode additional data. Composite symbols are not supported by all barcode scanners and implementation can be more difficult than other options. |
10 |
Interleaved 2 of 5 |
It is based on Standard 2 of 5 symbology, but uses both bar and space width to encode information so the density of ITF25 is much higher. It is primarily used in the warehouse industry. |
11 |
CODE 128 |
A high-density linear symbology that encodes text, numbers, numerous functions and the entire 128 ASCII character set. It enables you to store diversified information in the barcode. |
12 |
CODE 93 |
An alphanumeric, variable length symbology designed to provide a higher density and data security enhancement to Code 39. |
13 |
CODE 39 |
The first alpha-numeric symbology that originally encoded 39 characters (now 43) . It is not as compact as the Code 128 symbology, but it is still heavily used in the automotive industry and by the US Department of Defense. |
14 |
ITF |
A mix between the POS (Point-of-sale) codes and the logistics barcode Code 128. It's mainly being used in trading, but only on products that need no POS interaction. |
20 |
QR CODE |
A "2D Matrix" symbology. Because QR Code requires camera based scanners it is currently restricted for use with applications that will involve imaging scanners within mobile devices and not for POS processing. |
21 |
DataMatrix |
A 2D barcode symbology with very high data density. It is spreading in the area of mobile marketing, in such applications the DataMatrix barcode is also known under the name SemaCode. |
22 |
AZTEC |
It is a matrix symbology which supports the entire ASCII character set and offers several error checking modes. Aztec symbols are square and may be read at any orientation. |
Return value
Integer.
1 - Success.
-1 - It is called in PowerBuilder or Appeon Web, or there is an error.
Description
Reads data from the specified image file.
Syntax
barcode
.of_getfiledata
( string as_filepath
)
Argument Type |
Argument |
Description |
---|---|---|
eon_mobile_barcodeex |
|
The name of the eon_mobile_barcodeex object. |
string |
|
The full path of the file you want to read. |
Return value
Blob.
Description
Executes this function when you need to scan an image containing the barcode information.
The camera will be opened automatically by Appeon, and you need to point the camera at the image to be scanned. The camera will automatically close after a successful scanning, and will return the data and format contained in the barcode.
Supported on mobile client only.
Syntax
barcode
.of_read
(
ref string as_data
, ref integer
ai_format
)
Argument Type |
Argument |
Description |
---|---|---|
eon_mobile_barcodeex |
|
The name of the eon_mobile_barcodeex object. |
string |
|
Returns the data of a barcode. |
integer |
|
Returns the format of barcode. |
Following is the list of supported barcode formats:
Data |
Format |
Specification |
---|---|---|
0 |
Unknown |
|
1 |
EAN-2, GS1 2-digit add-on |
It is a supplement to the EAN-13 and UPC-A barcodes. It is often used on magazines and periodicals to indicate an issue number. |
2 |
EAN-5, GS1 5-digit add-on |
It is a supplement to the EAN-13 barcode used on books. It is used to give a suggestion for the price of the book. |
3 |
EAN-8 |
It is the short version of EAN-13. An EAN-8 number contains 7 digits of message plus 1 check digit. The first two or three digits identify the numbering authority, and the remaining 4 or 5 digits identify the product. |
4 |
UPC-E4 |
It is the short form representation of a UPC-A number. It reduces the data length from 12 digits to 6 digits by compressing the extra zeros. It is suited for identifying products in small packages. |
5 |
ISBN-10, from EAN-13 |
It is printed in human-readable form above the EAN-13 bar code. |
6 |
UPC-A |
It is the most common and well-known symbology in the US, which consists of four areas: 1) The number system; 2) The manufacturer code; 3) The product code; 4) The check digit. |
7 |
EAN-13 |
It is a superset of UPC-A. Any software or hardware capable of reading an EAN-13 symbol will automatically be able to read an UPC-A symbol. |
8 |
ISBN-13, from EAN-13 |
It is printed in human-readable form above the EAN-13 bar code. |
9 |
COMPOSITE, EAN/UPC composite |
It is the specification for a 2D barcode symbol included above a DataBar, UPC, EAN or Code 128 barcode to encode additional data. Composite symbols are not supported by all barcode scanners and implementation can be more difficult than other options. |
10 |
Interleaved 2 of 5 |
It is based on Standard 2 of 5 symbology, but uses both bar and space width to encode information so the density of ITF25 is much higher. It is primarily used in the warehouse industry. |
11 |
CODE 128 |
A high-density linear symbology that encodes text, numbers, numerous functions and the entire 128 ASCII character set. It enables you to store diversified information in the barcode. |
12 |
CODE 93 |
An alphanumeric, variable length symbology designed to provide a higher density and data security enhancement to Code 39. |
13 |
CODE 39 |
The first alpha-numeric symbology that originally encoded 39 characters (now 43) . It is not as compact as the Code 128 symbology, but it is still heavily used in the automotive industry and by the US Department of Defense. |
14 |
ITF |
A mix between the POS (Point-of-sale) codes and the logistics barcode Code 128. It's mainly being used in trading, but only on products that need no POS interaction. |
20 |
QR CODE |
A "2D Matrix" symbology. Because QR Code requires camera based scanners it is currently restricted for use with applications that will involve imaging scanners within mobile devices and not for POS processing. |
21 |
DataMatrix |
A 2D barcode symbology with very high data density. It is spreading in the area of mobile marketing, in such applications the DataMatrix barcode is also known under the name SemaCode. |
22 |
AZTEC |
It is a matrix symbology which supports the entire ASCII character set and offers several error checking modes. Aztec symbols are square and may be read at any orientation. |
Return value
Integer.
1 - Success.
0 - Cancel.
-1 - It is called in PowerBuilder or Appeon Web, or there is an error.