Re: Loading CSV or PRN

[ DelphiLand FAQ ]

Posted by webmaster Guido on May 06, 2004 at 16:07:00:

In Reply to: Loading CSV or PRN posted by Efo Hadi + epotea on May 06, 2004 at 03:15:33:

: I want to load the table in CSV/PRN file format to the String Grid. that's possible?

Yes, that's possible with a CSV file:

1. Read a line of the CSV file into a string variable.
2. Split this line into a number of strings; this is also called "parsing".
3. Put each of the strings that you obtained in a column of the StringGrid.
4. If you are not at the end of the CSV file, get the next line: so jump to step 1.

Related Articles and Replies:

[ DelphiLand FAQ ]