FoundCodeType Result
Applies To
Vision Objects: CodeReader
Description
Returns the type of the detected bar code.
Usage
VGet Sequence.Object.FoundCodeType[(result)], var
- Sequence
- String variable containing a sequence name.
- Object
- Name of an object or string variable containing an object name. The object must exist in the specified sequence.
- var
- Integer variable that will contain the value of the result.
- result
- Optional result number. If omitted, the result number is the CurrentResult. Used for objects that return multiple results.
Values
Returns the type of the detected bar code. For details on values to be acquired, refer to Remarks below.
Remarks
Returns the bar code type found in CodeReader object. Return values are constants as shown below.
Code | Constant | Remarks |
---|---|---|
Codabar | VISION_CODETYPE_CODABAR | |
Code39 | VISION_CODETYPE_CODE39 | |
Code128 | VISION_CODETYPE_CODE128 | |
DataMatrix | VISION_CODETYPE_DATAMATRIX | 2D code |
EAN 8 | VISION_CODETYPE_EAN8 | |
EAN 13 | VISION_CODETYPE_EAN13 | |
Interleaved 2 of 5 | VISION_CODETYPE_INTERLEAVED25 | Also called ITF |
PDF417 | VISION_CODETYPE_PDF417 | 2D code |
QR | VISION_CODETYPE_QR | 2D code |
UPC | VISION_CODETYPE_UPC | |
UPC A | VISION_CODETYPE_UPCA | |
UPC E | VISION_CODETYPE_UPCE |
The following example displays the name of the found bar code on the screen.
Function main
Integer code
VRun CodeTest
VGet CodeTest.Code01.FoundCodeType, code
Select code
Case VISION_CODETYPE_CODABAR
Print "VISION_CODETYPE_CODABAR"
Case VISION_CODETYPE_CODE39
Print "VISION_CODETYPE_CODE39"
Case VISION_CODETYPE_CODE128
Print "VISION_CODETYPE_CODE128"
Case VISION_CODETYPE_DATAMATRIX
Print "VISION_CODETYPE_DATAMATRIX"
Case VISION_CODETYPE_EAN8
Print "VISION_CODETYPE_EAN8"
Case VISION_CODETYPE_EAN13
Print "VISION_CODETYPE_EAN13"
Case VISION_CODETYPE_INTERLEAVED25
Print "VISION_CODETYPE_INTERLEAVED25"
Case VISION_CODETYPE_PDF417
Print "VISION_CODETYPE_PDF417"
Case VISION_CODETYPE_QR
Print "VISION_CODETYPE_QR"
Case VISION_CODETYPE_UPC
Print "VISION_CODETYPE_UPC"
Case VISION_CODETYPE_UPCA
Print "VISION_CODETYPE_UPCA"
Case VISION_CODETYPE_UPCE
Print "VISION_CODETYPE_UPCE"
Send
Fend
See Also
CodeReader Object, CodeType Property