TCSVDataset file not readable
Original Reporter info from Mantis: wp @wpam
-
Reporter name:
Original Reporter info from Mantis: wp @wpam
- Reporter name:
Description:
Recently, TCSVDataset was added to the Lazarus component palette which makes it a very visible component.
TCSVDataset inherits from TBufDataset, and this stores its data in the binary file introduced by TBufDataset. This is very confusing to the user because everybody expects the file format to be CSV. I am aware that there are additional methods LoadFromCSVFile/Stream and SaveToCSVFile/Stream. But these files are not the files in which data are stored automatically.
Steps to reproduce:
Run attached demo. The project creates some fields and populates them. When the program terminates data are stored automatically to the file specified.
When the program is started a second time an index-out-of-range error is reported.
Mantis conversion info:
- Mantis ID: 34435
- Fixed in version: 3.3.1
- Fixed in revision: 43644 (#00e13249)
- Target version: 3.2.0