Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

Delphi-TextTable

Allows you to make a table with columns and rows but in text format.

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

Delphi TextTable

Allows you to make a table with columns and rows but in text format.

Example

delphi
procedure Main;
begin
  var textTable := TTextTable.Create;
  try
    textTable.AddColumns(['col1', 'Middle Column', 'col3']);
    textTable.AddRow(['val1', 'val2', 'val 3']);

    Writeln(textTable.ToString);
  finally
    textTable.Free;
  end;
end;

Output

delphi
col1 Middle Column col3
val1 val2          val 3