FireDAC.Comp.Client.TFDCustomConnection.GetCatalogNames
Delphi
procedure GetCatalogNames(const APattern: string; AList: TStrings);
C++
void __fastcall GetCatalogNames(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 | TFDCustomConnection |
Description
Populates a string list with the names of catalogs in a DB.
Call GetCatalogNames to retrieve a list of catalogs in a DB.
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
ADConnection1.GetCatalogNames('', ListBox1.Items);