The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



LoadLinesFromFile


Unit:SDL_replist
Class:TReportListView
Declaration:function LoadLinesFromFile (Column, FirstRow: integer; FName: string): integer;

The function LoadLinesFromFile reads text lines from the text file FName and stores them one by one into column Column starting with FirstRow as the first row. The lines must not be longer than 255 characters, longer lines will be truncated to 255 characters.

If the number of read lines exceeds the number of rows in the report listview, additional rows are added automatically. The function returns the number of read lines.

Hint: Please note that the function does nothing if Column and FirstRow are set beyond the current range of the report list view. If the file FName does not exist, an exceptions is raised.



Last Update: 2023-Dec-13