FireDAC.Comp.Client.TFDCustomManager.GetCatalogNames
[–] Properties | |
---|---|
Type: procedure function
| |
Visibility: public | |
Source: FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp
| |
Unit: FireDAC.Comp.Client | |
Parent: TFDCustomManager |
Delphi
procedure GetCatalogNames(const AConnectionName, APattern: string; AList: TStrings);
C++
void __fastcall GetCatalogNames(const System::UnicodeString AConnectionName, const System::UnicodeString APattern, System::Classes::TStrings* AList);
Description
Populates a string list with the names of catalogs in a DB.
Call GetCatalogNames to retrieve a list of catalogs in a DB.
AConnectionName
is the connection name to use.
APattern
is the LIKE-pattern filtering catalog names.
AList
is a TStrings descendant that receives the catalog names. Any existing strings are deleted from the list before GetCatalogNames adds the names of all the catalogs in a DB.
Example
FDManager.GetCatalogNames('myconn', '', ListBox1.Items);