RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDatabase.Directory Property

Specifies the working directory for a Paradox or dBASE database.

Pascal
property Directory: string;
C++
__property AnsiString Directory;

Use Directory at runtime 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 runtime. 

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

To change the value of Directory at runtime, 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.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!