RAD Studio VCL Reference
|
Searches a session's list of database components for a specified database.
function FindDatabase(const DatabaseName: string): TDatabase;
__fastcall TDatabase FindDatabase(const AnsiString DatabaseName);
Call FindDatabase to determine whether or not a specified database is associated with a session. DatabaseName specifies the name of the database component for which to search.
FindDatabase compares DatabaseName to the DatabaseName property for each database component in a session's list. If a match is found, FindDatabase returns a pointer to the database component. Otherwise FindDatabase returns nil (Delphi) or NULL (C++).
An application can call FindDatabase to see if a database component already exists before creating a new database component for a session.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|