Bde.DBTables.TDatabase.ValidateName

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Bde.DBTables.pas
Bde.DBTables.hpp
Unit: Bde.DBTables
Parent: TDatabase

Delphi

procedure ValidateName(const Name: string);

C++

void __fastcall ValidateName(const System::UnicodeString Name);

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.

See Also