
The Function Block CSV_ENCODE encodes a line of a CSV string.
Note: This function block can have more than four inputs. You can right-click on the function block to add another input.
The input defines the character between columns. If the input is equal to NULL, then ";" is assumed.
Defines the brackets of values. If the input is equal to NULL, then """ is assumed.
Defines the escape character. An empty string disables the proprietary masking mechanism. If the input is equal to NULL, then "\" is assumed.
Note: Normally, an enclosure character in a cell is masked by doubling it. However, the escape character can be used alternatively. Thus, by default, the values "" and "\" have the same meaning. Apart from the possibility to mask the enclosure character by the escape character, the latter has no special significance. It is not even suitable for masking itself.
An input defines a value of a cell in a CSV table.
Returns the data as a CSV line. The end of the line is terminated with a line break.