EPUB | CHM | PDF

TPSQLRestore.Properties.VersionAsStr

Top Previous Next

Returns a string representing the pg_restore.dll version.

Syntax:

property VersionAsStr: string;

Description:

The string is formed by concatenating the major, minor, and revision numbers separated by dots. '0.0.0' value is returned if the library can not be found.

Example:

This example populates form caption with library version used:

procedure TForm1.Button2Click(Sender: TObject);
begin
  fmRestore.Caption := Format('Restore database (v%s)', [PSQLRestore1.VersionAsStr]);
end;

See also: VersionAsInt, TPSQLDump.VersionAsStr