Bde.DBTables.TDatabase.ValidateName
Delphi
procedure ValidateName(const Name: string);
C++
void __fastcall ValidateName(const System::UnicodeString Name);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Bde.DBTables.pas Bde.DBTables.hpp |
Bde.DBTables | TDatabase |
Description
Raises an exception if a specified database is already open in the active session.
Call ValidateName to prevent duplicate access to a database from within a single session. Name is a string containing the name of the database to test. If the database is already open, ValidateName raises the EDatabaseError exception. If the database is not open, the procedure returns, and the application continues processing.
Note: Most applications should not need to call this method directly. It is called automatically each time a database is opened.