[Demo] Loading CSV as table

Demos, code samples. Only questions related to the existing topics are allowed here.
Post Reply
Sergey Tkachenko
Site Admin
Posts: 17253
Joined: Sat Aug 27, 2005 10:28 am
Contact:

[Demo] Loading CSV as table

Post 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;
Post Reply