JVCL Help: TJvCsvDataSet Class
- Project summary
Search in JVCL HelpSearch in all projects
In-memory TDataSet component similar to TTable or ClientDataSet. You must configure the CsvFieldDef (string) property before using it, and a valid CsvFieldDef will define, among other things, the width of the string fields. Data longer than the width of a field will be truncated, just like in the old days with dBase datasets (TTable)..
TJvCsvDataSet = class(TJvCustomCsvDataSet);
An in-memory TDataSet component similar to TTable but with optional saving to CSV file, and which, unlike using TTable in CSV mode, does not utilize the BDE, or any external database access layers to do its work.
Since this component inherits from TDataSet, you can use it with any standard VCL data aware components. Remember to link to a DataSource, before you can link this to any data aware controls!
This component inherits from TJvCustomCsvDataSet. See TJvCustomCsvDataSet for more internal details.
To Use TJvCsvDataSet, and any other component that you create that inherits from TJvCustomCsvDataSet you *must* first set up the important Property called CsvFieldDef.
Here is a valid CsvFieldDef string:
That defines three string-type fields, each which can store up to 100 characters. If you need more than 80 characters, you must specify it, because if you made the CsvFieldDef like this, it would mean 80 characters:
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page