TBarCode Library 11  TBarCode Library 11

◆ BCSetAutoCorrect()

ERRCODE BCSetAutoCorrect ( t_BarCode pBarCode,
BOOL  bAutoCorrect 
)

Sets auto-correct option for input data.

If set to true TBarCode performs the following operations on the input data (before creating the bar code):

  • Code 39: Trim leading/trailing '*' characters (start/stop characters are added by the encoder)
  • ISBN-13/ISSN/ISMN: Remove '-' characters (not encoded into the bar code)
  • Code 2of5 Interleaved: Insert a leading zero if the number of data digits is odd (2/5 IL supports only even number of digits)
  • Code 128: Remove multiple occurrences of leading FNC1 and all occurrences of trailing FNC1 characters.
  • GS1 128: Remove all leading and trailing FNC1 characters (the FNC1 at first position is added by the encoder).
Note
Should always be true. If this option is set to false BCCheck() or BCCreate() may return with an error.
Parameters
[in]pBarCodePointer to barcode structure.
[in]bAutoCorrectAuto correct flag.
  • true ... Enable auto-correct
  • false ... Disable auto-correct
Return values
ERRCODEErrOk (0) in case of success. Non-zero if error occurred.
See also
BCGetAutoCorrect()

© 2023 All rights reserved by TEC-IT Datenverarbeitung GmbH
Generated on Wed Apr 10 2024 13:55:57 for TBarCode Library 11 with doxygen 1.9.1