What does the TNxCSVDocument6 component do? I can't find any documentation for it. Is it a standalone CSV importer/exporter?
= Steve
Posted 24 December 2015 - 01:42 AM
What does the TNxCSVDocument6 component do? I can't find any documentation for it. Is it a standalone CSV importer/exporter?
= Steve
Posted 24 December 2015 - 01:53 AM
Hi,
Yes, the same as used by NextGrid6.
You need to use OnGet/SetValue events, but first set RowCount and ColCount.
Example:
procedure TForm1.Button1Click(Sender: TObject); begin NxCSVDocument61.SaveToCSV('myfile.csv'); end; procedure TForm1.NxCSVDocument61GetValue(Sender: TObject; X, Y: Integer; var Value: WideString); begin // Here you provide values, but RowCount & ColCount need to be set too. end;
Posted 24 December 2015 - 03:36 AM
Posted 24 December 2015 - 04:12 AM
Thanks for the fast reply, Boki. What properties and events do I need to use if I want to load a CSV file using the same component?
Regards,
= Steve
Posted 24 December 2015 - 05:10 PM
Hi Steve,
You need to use OnSetValue event and LoadFromCSV method. Again you need to set ColCount and RowCount.
0 members, 2 guests, 0 anonymous users