Bde.DBTables.TSession.GetTableNames

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure GetTableNames(const DatabaseName, Pattern: string;  Extensions, SystemTables: Boolean; List: TStrings);

C++

void __fastcall GetTableNames(const System::UnicodeString DatabaseName, const System::UnicodeString Pattern, bool Extensions, bool SystemTables, System::Classes::TStrings* List);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Bde.DBTables.pas
Bde.DBTables.hpp
Bde.DBTables TSession

Description

Populates a string list with the names of tables associated with a specified database component.

Call GetTableNames to retrieve a list of the tables associated with a given database. DatabaseName specifies the name of the database from which to retrieve table names.

Pattern specifies a delimiter string that restricts the tables returned to those that match the string. Pattern can include wildcard symbols. Pass an empty Pattern string to match all files not restricted by other criteria.

For searches on Paradox and dBASE, set Extensions to true to include filename extensions as part of the table name. For SQL-based databases, set Extension to false.

Set SystemTables to true for SQL-based databases to return both data tables and the system tables that define the database structure. Set SystemTables to false for Paradox and dBASE tables.

List is a string list object, created and maintained by the application, into which to return the table names.

See Also