Skip to content

egroups/CSVUtils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

CSVUtils

Utils for CSV writing

Example usage

var
  writer: ICSVWriter;
begin
  writer:=TCSVWriter.Create;
  writer.Fields(['PLU','Name','Supplier'])
    .Field('Quantity')
    .Field('Price')
    //.QuoteStr(True)
    //.Delimiter('|')
    .AddRow
    .Value('Name','Zkouska 110')
    .Value('PLU',110)
    .Value('Supplier','AnyFirm')
    .Value('Price',123.50)
    .AddRow
    .Value('PLU',100)
    .Value('Name','Zkouska 100')
    .Value('Supplier','AnyFirm')
    .Value('Quantity',100.23)
    .AddRow
    .Value('Name','Zkouska 200')
    .Value('PLU',200)
    .Value('Supplier','AnyFirm')
    .AddRow
    .Value('PLU',300)
    .Value('Supplier','AnyFirm')
    .SaveToFile('Test.CSV');
end;

Dependency

Spring4d

About

Utils for CSV writing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages