Data.Win.ADODB.TADOConnection.GetTableNames
[–] Properties | |
---|---|
Type: procedure function
| |
Visibility: public | |
Source: Data.Win.ADODB.pas Data.Win.ADODB.hpp
| |
Unit: Data.Win.ADODB | |
Parent: TADOConnection |
Delphi
procedure GetTableNames(List: TStrings; SystemTables: Boolean = False);
C++
void __fastcall GetTableNames(System::Classes::TStrings* List, bool SystemTables = false);
Description
Populates a string list with the names of tables in the database.
Call GetTableNames to retrieve a list of tables in the associated database.
List is the already-existing string list object into which the tables names are put.
Set SystemTables to indicate whether the list of table names should include the database's system tables.
ADOConnection1.GetTableNames(ListBox2.Items, False);
ADOConnection1->GetTableNames(ListBox2->Items, false);
Note: Any contents already in the target string list object are eliminated and overwritten by the data produces by GetTableNames.