TBarCode Library 11  TBarCode Library 11
ERRCODE _stdcall BCSetTranslateEsc ( t_BarCode pBarCode,
BOOL  bTranslate 
)

Activates/deactivates the translation of escape-sequences.

Defines if escape-sequences in the input data (e.g. "\n" in "123\n456") shall be translated before encoding takes place. If the translation of escape-sequences is switched off, all characters are encoded "as-is". If it is activated, escape-sequences are translated into their corresponding characters. See Barcode Reference for more information.

Note:
In order to encode barcode specific control characters (like subset selection in Code128 or FNC1) escape sequences are required.
Escape sequences cannot be used if data compression is activated (BCSetCompression). If data compression is activated, Escape sequences are not translated. In addition, Escape sequences are not supported with target code page UTF-16 (will raise an error).
See also:
BCGetTranslateEsc(), BCSetTextA(), BCSetTextW()
Parameters:
[in]pBarCodePointer to barcode structure.
[in]bTranslateTranslate escape sequences.
  • true: Escape sequences (like "\n") are translated
  • false: Escape sequences are not translated (the default)
Return values:
ERRCODEErrOk (0) in case of success. Non-zero if error occurred.