Jump to content


Photo

TNxCSVDocument6


  • Please log in to reply
4 replies to this topic

#1 Speed

Speed
  • Members
  • 64 posts

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



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,719 posts
  • Gender:Male

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;

boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,719 posts
  • Gender:Male

Posted 24 December 2015 - 03:36 AM

PS. This is early documentation on:

http://developer.ber...hp?topic_id=293


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#4 Speed

Speed
  • Members
  • 64 posts

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



#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,719 posts
  • Gender:Male

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.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users