Unit 'Grids' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TCustomStringGrid.SaveToCSVFile

Saves grid content as delimited values in the specified file name.

Declaration

Source position: grids.pas line 1787

public procedure TCustomStringGrid.SaveToCSVFile(

  AFileName: string;

  ADelimiter: Char = ',';

  WriteTitles: Boolean = True;

  VisibleColumnsOnly: Boolean = False

);

Arguments

AFileName

  

File name (with optional path) where CSV data is stored.

ADelimiter

  

Delimiter used between cell values in CSV output; default is Comma (',').

WriteTitles

  

Indicates if column captions are written as the first row of CSV data in the file.

VisibleColumnsOnly

  

Indicates if only visible columns are included in the CSV output.