RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIBDataBase.GetTableNames Method

Populates a string list with the names of tables in the database.

Pascal
procedure GetTableNames(List: TWideStrings; SystemTables: Boolean = False);
C++
__fastcall GetTableNames(TWideStrings List, Boolean SystemTables = False);

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.

   IBDatabase1.GetTableNames(ListBox2.Items, False);
       IBDatabase1->GetTableNames(ListBox2->Items, false);

Note: Any contents already in the target string list object are eliminated and overwritten by the data produced by GetTableNames.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!