Delphi Examples: DbiSetDirectory

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Delphi Examples: DbiSetDirectory

Return to chapter overview

Set the current working directory.

The function fDbiSetDirectory for the database specified in the hdb parameter to the directory in the Dir parameter. This example uses the following input:

 fDbiSetDirectory(Database1.Handle, 'C:\Tables');

 

The procedure is:

procedure fDbiSetDirectory(hdb: hDbiDb; Dir: String);

begin

 Check(DbiSetDirectory(hdb, PChar(Dir)));

end;