Re: [fpc-pascal] Putting Delimited text into a StringList

2022-02-07 Thread James Richters via fpc-pascal
Yes, that's it, thank you. I see it there on: https://www.freepascal.org/daily/doc/fcl/csvdocument/tcsvdocument.html Source position: csvdocument.pp line 59 For some reason I thought CSVReadWrite was the unit. James ___ fpc-pascal maillist -

Re: [fpc-pascal] Putting Delimited text into a StringList

2022-02-07 Thread Tomas Hajny via fpc-pascal
On 2022-02-07 13:20, James Richters via fpc-pascal wrote: I'm trying to use TCSVDocument, I have: Uses Math,sysutils,Classes,CSVReadWrite; That seems to be fine, But I get an error 1D.pas(18,17) Error: Identifier not found "TCSVDocument" On a line: Var CSVData : TCSVDocument; Do I

Re: [fpc-pascal] Putting Delimited text into a StringList

2022-02-07 Thread James Richters via fpc-pascal
I'm trying to use TCSVDocument, I have: Uses Math,sysutils,Classes,CSVReadWrite; That seems to be fine, But I get an error 1D.pas(18,17) Error: Identifier not found "TCSVDocument" On a line: Var CSVData : TCSVDocument; Do I need another unit or am I doing something wrong? James

Re: [fpc-pascal] Putting Delimited text into a StringList

2022-02-06 Thread James Richters via fpc-pascal
Thank you for correcting my error, that did work, but I think I will take your advice and try to use TCSVDocument, that looks like it will be much simpler and give me a 2 dimensional array which is what I really wanted to end up with. Thanks for the documentation link and the suggestion! James

Re: [fpc-pascal] Putting Delimited text into a StringList

2022-02-06 Thread Michael Van Canneyt via fpc-pascal
On Sun, 6 Feb 2022, James Richters via fpc-pascal wrote: I'm trying to get Comma Delimited Text from a CSV File created with Microsoft Excel into a string list, but I keep getting spaces as delimiter characters. How can I prevent this and use ONLY commas as delimiters? I hardcoded a test

[fpc-pascal] Putting Delimited text into a StringList

2022-02-06 Thread James Richters via fpc-pascal
I'm trying to get Comma Delimited Text from a CSV File created with Microsoft Excel into a string list, but I keep getting spaces as delimiter characters. How can I prevent this and use ONLY commas as delimiters? I hardcoded a test string in and it is delimiting on spaces and commas, but I wand