Page 1 of 1

[Demo] Loading CSV as table

Posted: Tue Nov 29, 2005 9:21 pm
by Sergey Tkachenko
This unit contains function for loading CSV files (files with comma or
semicolon delimited values) or files with tab delimited values.

(2007-Sep-23: the link is removed, because this unit is included in RichViewActions, http://www.trichview.com/resources/actions/ )

Using for inserting table:

Code: Select all

var table: TRVTableItemInfo;
begin
  table := LoadCSV(FileName, RichViewEdit1, ';', False, 0, 0);
  if table<>nil then begin
    // here you can set table properties,
    // such as borders
    RichViewEdit1.InsertItem('', table);
  end;
end;