Leadtools.Barcode Namespace > OneDBarcodeReadOptions Class : EnableErrorCheck Property |
[DescriptionAttribute("Enables or disables the use of an error check digit while reading a barcode")] [DisplayNameAttribute("Use check digit error")] [CategoryAttribute(" Error Checking and Correction")] [DefaultValueAttribute()] public bool EnableErrorCheck {get; set;}
'Declaration <DescriptionAttribute("Enables or disables the use of an error check digit while reading a barcode")> <DisplayNameAttribute("Use check digit error")> <CategoryAttribute(" Error Checking and Correction")> <DefaultValueAttribute()> Public Property EnableErrorCheck As Boolean
'Usage Dim instance As OneDBarcodeReadOptions Dim value As Boolean instance.EnableErrorCheck = value value = instance.EnableErrorCheck
[DescriptionAttribute("Enables or disables the use of an error check digit while reading a barcode")] [DisplayNameAttribute("Use check digit error")] [CategoryAttribute(" Error Checking and Correction")] [DefaultValueAttribute()] public bool EnableErrorCheck {get; set;}
ObjectiveC Syntax
Java Syntax
DescriptionAttribute("Enables or disables the use of an error check digit while reading a barcode") DisplayNameAttribute("Use check digit error") CategoryAttribute(" Error Checking and Correction") DefaultValueAttribute() get_EnableErrorCheck();
set_EnableErrorCheck(value);
[DescriptionAttribute("Enables or disables the use of an error check digit while reading a barcode")] [DisplayNameAttribute("Use check digit error")] [CategoryAttribute(" Error Checking and Correction")] [DefaultValueAttribute()] public: property bool EnableErrorCheck { bool get(); void set ( bool value); }
If you set the value of EnableErrorCheck to true, then the engine will perform error checking (CRC) using the optional check word and the barcode data before returning the barcode found. If the check failed, no barcode is returned.
The EnableErrorCheck property setting will only have effect when reading barcode symbologies that support an optional check word. These barcode symbologies are listed below:
Code 3 of 9 (Code 39) (BarcodeSymbology.Code3Of9)
Standard 2 of 5 (Industrial 2 of 5) (BarcodeSymbology.CodeStandard2Of5)
Interleaved 2 of 5 (BarcodeSymbology.CodeInterleaved2Of5)
Code 11 (USD-8) (BarcodeSymbology.Code11)
CODABAR (Ames Code/USD-4/NW-7/2 of 7) (BarcodeSymbology.Codabar)
The rest of the symbologies supported by this options class requires the check word to be valid and checking is not optional. The engine will always check the check word against the data regardless of the value of EnableErrorCheck.
For an example, refer to OneDBarcodeReadOptions.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2