See Also Examples Applies To
Returns a supported bar code type which can be detected by the opened source.
Syntax
object.TwainGetAvailableBarCodeTypeNo (nNumber)
The TwainGetAvailableBarCodeTypeNo syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| nNumber | Required. Long. Index of the available bar code type. Must be a value between 1 and TwainGetAvailableBarCodeTypeCount() returned value. |
Returns
Long. If fail, returns -1 else if success, The selected bar code type value. 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 check that the TWAIN state is >= 4 (TWAIN_SOURCE_OPEN)
To get the TWAIN state, use the TwainGetState() function.
Category
TWAIN Functions