Bde.DBTables.TDatabase.Directory

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Directory: string read GetDirectory write SetDirectory;

C++

__property System::UnicodeString Directory = {read=GetDirectory, write=SetDirectory};

Properties

Type Visibility Source Unit Parent
property public
Bde.DBTables.pas
Bde.DBTables.hpp
Bde.DBTables TDatabase

Description

Specifies the working directory for a Paradox or dBASE database.

Use Directory at run time to change or retrieve the working directory for a Paradox or dBASE database. This is the location these databases use to create temporary tables at run time.

Ordinarily, a directory location is specified in the PATH parameter of the database alias (specified by the AliasName property). At run time, however, some applications may need to change the working directory after a database is opened.

To change the value of Directory at run time, a database must already be open, or an exception is raised. Clearing the current value of Directory sets its value to the original working directory specified when the database was first opened.

Note: Do not use Directory when connected to remote databases. An exception is raised in these circumstances. An exception is also raised if an application accesses Directory when the database is closed.

See Also