[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Grids' (#lcl)

TCustomStringGrid.SaveToCSVStream

Saves content in the grid as delimited values in the specified stream instance.

Declaration

Source position: grids.pas line 1793

public procedure TCustomStringGrid.SaveToCSVStream(

  AStream: TStream;

  ADelimiter: Char = ',';

  WriteTitles: Boolean = True;

  VisibleColumnsOnly: Boolean = False

);

Arguments

AStream

  

Stream where grid content is stored.

ADelimiter

  

Delimiter between cell values; default is Comma (',').

WriteTitles

  

Indicates that column captions are stored as the first row of CSV data.

VisibleColumnsOnly

  

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