TCSVBuilder class
Class to write a CSV file.
Declaration
TCSVBuilder = class(TCSVHandler)Inheritance
- TCSVBuilder
- TCSVHandler
- TPersistent
- TObject
Description
TCSVBuilder can be used to correctly write a CSV file. To use it, optionally set a stream to which the CSV file will be written using
SetOutput,
call
AppendCell for each cell you wish to write, and call
AppendRow when you want to start a new line.
If you didn't specify an output stream, the output is available in
DefaultOutput or
DefaultOutputAsString.See also
Properties
DefaultOutput | public | Default output as stream. |
DefaultOutputAsString | public | Default output as string value. |
Methods
AppendStringToStream | protected | |
QuoteCSVString | protected | |
Create | public | Create a new instance of TCSVBuilder. |
Destroy | public | Free a TCSVBuilder instance. |
SetOutput | public | Set the output stream to write to. |
ResetBuilder | public | Reset values. |
AppendCell | public | Append a cell to the output. |
AppendRow | public | Append a new row. |
Inherited
From TCSVHandler (8)
Assign AssignCSVProperties Delimiter EqualColCountPerRow IgnoreOuterWhitespace LineEnding QuoteChar QuoteOuterWhitespace
From TPersistent (7)
AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers GetNamePath GetOwner
From TObject (40)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
