[fpc-pascal] Issue with CSVDocument
Michael Van Canneyt
michael at freepascal.org
Mon Feb 7 15:48:00 CET 2022
On Mon, 7 Feb 2022, James Richters wrote:
> I tried this:
>
> CSVData:=TCSVDocument.Create;
> CSVData.DetectBOM := True;
> CSVData.LoadFromFile(ParamStr(1));
> Writeln('Read In: ',CSVData.RowCount,' Rows and ',CSVData.MaxColCount,' Columns');
> Writeln('Press Enter to Process');
> ... same as before...
> And I get 1d.pas(165,28) Error: Identifier not found "DetectBOM"
Strange, I have it here ? Maybe it was introduced later...
>
> I also tried:
> CSVDocument.DetectBOM := True;
> CSVData:=TCSVDocument.Create;
> CSVData.LoadFromFile(ParamStr(1));
>
> And I also get Error: Identifier not found "DetectBOM"
>
> It does seem like there is something there that I can't see with Notepad++
> I copied everything, created a new file, Pasted everything in and saved it, and the mysterious characters are not there anymore.
Notepad++ detects the BOM Marker but obviously does not show it.
Michael.
More information about the fpc-pascal
mailing list