[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Loads the grid from a file with delimited values for the columns and rows.
Source position: grids.pas line 1783
public procedure TCustomStringGrid.LoadFromCSVFile( |
AFilename: string; |
ADelimiter: Char = ','; |
UseTitles: Boolean = True; |
FromLine: Integer = 0; |
SkipEmptyLines: Boolean = True |
); |
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. |
Creates a temporary TFileStream instance that is used to load values from the file in AFilename by calling the LoadFromCSVStream method.
|
Loads the content for the grid from the delimited values in AStream. |