Use semicolon separator for Excel if system decimal separator is comma. See http://www.heidisql.com/forum.php?t=8226

This commit is contained in:
Ansgar Becker
2011-05-03 05:26:17 +00:00
parent 9c2788e3d8
commit 97c4ba2cc0

View File

@@ -167,8 +167,12 @@ begin
// Display the actually used control characters, even if they cannot be changed
case ExportFormat of
efExcel: begin
// Tab for pasting, semicolon if comma is also the decimal separator, and comma for the rest
// see http://en.wikipedia.org/wiki/Comma-separated_values
if radioOutputCopyToClipboard.Checked then
editSeparator.Text := '\t'
else if FormatSettings.DecimalSeparator=',' then
editSeparator.Text := ';'
else
editSeparator.Text := ',';
editEncloser.Text := '"';