FireDAC.Comp.Client.TFDCustomManager.GetCatalogNames
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);
Contents
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDCustomManager |
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);