Delphi Examples: DbiSetPrivateDir

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Delphi Examples: DbiSetPrivateDir

Return to chapter overview

Set the private directory.

Delphi programs using the VCL for data access should use the TSession.PrivateDir property rather than using the dbi function directly. This sets the private directory for Paradox tables. For all drivers, all temporary or auxiliary files are created/kept in this directory.

This example uses the following input:

 fDbiSetPrivateDir('C:\Temp');

 

The procedure is:

procedure fDbiSetPrivateDir(Dir: string);

begin

 Check(DbiSetPrivateDir(PChar(Dir)));

end;