Code: Alles auswählen
TCSVOptions = Class(TCSVHandler)
private
FDefaultFieldLength: Word;
FFirstLineAsFieldNames: Boolean;
Public
Constructor Create; override;
Procedure Assign(Source : TPersistent); override;
Published
// Does first line of the file contain the field names to use ?
property FirstLineAsFieldNames : Boolean Read FFirstLineAsFieldNames Write FFirstLineAsFieldNames;
// Default is to create all fields as strings with the same length. Default string field length.
// If the CSV dataset has field defs prior to loading, this is ignored.
property DefaultFieldLength : Word Read FDefaultFieldLength Write FDefaultFieldLength;
// Field delimiter
property Delimiter;
// Character used to quote "problematic" data
// (e.g. with delimiters or spaces in them)
// A common quotechar is "
property QuoteChar;
// String at the end of the line of data (e.g. CRLF)
property LineEnding;
// Ignore whitespace between delimiters and field data
property IgnoreOuterWhitespace;
// Use quotes when outer whitespace is found
property QuoteOuterWhitespace;
end;