Code Snippets 1C Enterprise

Short texts 1C Enterprise 🧑‍💻 Code snippets 1C Enterprise ✍️ Reading lists 1C Enterprise 👀

1c valueTableToCSV

&AtServer Function valueTableToCSV(val table, val separatorChar = “,”, val stringDelimiter = “”””, val newLineFormat = “microsoft”, val includeTitle = true) var newLineChar, quotes, doubleQuotes, documentArray, titleLinecolumns, v, escapedString, row, lineArray, column, columns, titleLine; quotes = Char(34); doubleQuotes = Char(34) + Char(34); If newLineFormat = “linux” Then newLineChar = “” + Chars.LF; ElsIf newLineFormat = “apple” […]