See Also Examples Applies To
Returns the type of a bar code found on the last acquired image.
Syntax
object.TwainBarCodeGetType (nBarCodeNo)
The TwainBarCodeGetType syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| nBarCodeNo | Required. Long. The barcode number. Must be value between 1 and the number of detected barcodes. |
Returns
Long. The barcode type. Can be:
TWBT_3OF9 = 0
TWBT_2OF5INTERLEAVED = 1
TWBT_2OF5NONINTERLEAVED = 2
TWBT_CODE93 = 3
TWBT_CODE128 = 4
TWBT_UCC128 = 5
TWBT_CODABAR = 6
TWBT_UPCA = 7
TWBT_UPCE = 8
TWBT_EAN8 = 9
TWBT_EAN13 = 10
TWBT_POSTNET = 11
TWBT_PDF417 = 12
TWBT_2OF5INDUSTRIAL = 13
TWBT_2OF5MATRIX = 14
TWBT_2OF5DATALOGIC = 15
TWBT_2OF5IATA = 16
TWBT_3OF9FULLASCII = 17
TWBT_CODABARWITHSTARTSTOP = 18
TWBT_MAXICODE = 19
Remarks
Before using this function make sure that the barcode detection was enabled by the TwainSetBarcodeDetection() function.
Use the TwainBarCodeGetCount() function to determine how many barcodes have been detected on the last acquired image.
Category
TWAIN Functions