[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Base class for CSV reading and writing classes.
Source position: csvreadwrite.pp line 60
type TCSVHandler = class(TPersistent) |
||
public |
||
constructor Create; virtual; |
|
Create an instance of TCSVHandler. |
procedure Assign(); override; |
|
Assign properties from another TCSVHandler instance. |
procedure AssignCSVProperties(); |
|
Assign properties from another TCSVHandler instance. |
|
Field delimiter character. |
|
|
Character to quote values. |
|
property LineEnding: string; [rw] |
|
Line ending character. |
property IgnoreOuterWhitespace: Boolean; [rw] |
|
Ignore whitespace between delimiters and field data. |
property QuoteOuterWhitespace: Boolean; [rw] |
|
Write quotes when outer whitespace is found in a value. |
property EqualColCountPerRow: Boolean; [rw] |
|
Ensure every row has an equal amount of columns. |
end; |
|
Base class for CSV reading and writing classes. |
|
| | ||
| | ||
TObject,IFPObserved |
TCSVHandler is the base class for class TCSVParser which allows you to read a CSV file, and class TCSVBuilder which allows you to write a CSV file. It defines some common properties for these classes, mainly to describe the formatting of the CSV file, such as the Delimiter or QuoteChar and LineEnding properties.
Normally you will not create an instance of TCSVHandler, instead you will create a TCSVParser or TCSVBuilder instance.
|
Class to parse a CSV file. |
|
|
Class to write a CSV file. |
|
|
Field delimiter character. |
|
|
Character to quote values. |
|
|
Line ending character. |