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

TCustomStringGrid.LoadFromCSVFile

Loads the grid from a file with delimited values for the columns and rows.

Declaration

Source position: grids.pas line 1783

public procedure TCustomStringGrid.LoadFromCSVFile(

  AFilename: string;

  ADelimiter: Char = ',';

  UseTitles: Boolean = True;

  FromLine: Integer = 0;

  SkipEmptyLines: Boolean = True

);

Arguments

AFilename

  

File name with the content loaded in the method.

ADelimiter

  

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

UseTitles

  

Indicates if column captions are loaded from values in the file.

FromLine

  

Initial line number from the file loaded in the method.

SkipEmptyLines

  

Indicates if empty lines in the file are ignored in the method.

Description

Creates a temporary TFileStream instance that is used to load values from the file in AFilename by calling the LoadFromCSVStream method.

See also

TCustomStringGrid.LoadFromCSVStream

  

Loads the content for the grid from the delimited values in AStream.