PostgresDAC

TPSQLDump.Properties.RewriteFile

Previous Next

Specifies is DumpToFile method must rewrite target file.

Syntax:

property RewriteFile: boolean;

Description:

Set RewriteFile to True, if you want DumpToFile method to rewrite target file. If RewriteFile is set to False, then exception will occur if target file exists.

Example:

RewriteFile := False;
If OpenDialog1.Execute then
 try 
  PSQLTools1.DumpToFile(OpenDialog1.Filename);
 except
  ShowMessage('Failed to dump');
 end;