Bde.DBTables.TSession.GetFieldNames

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure GetFieldNames(const DatabaseName, TableName: string;
List: TStrings);

C++

void __fastcall GetFieldNames(const System::UnicodeString DatabaseName, const System::UnicodeString TableName, 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 all fields in a specified table.

Call GetFieldNames to retrieve a list of all the columns (fields) in a specified table.

DatabaseName is the name of the database that contains the table. It can be the name of an existing Borland Database Engine (BDE) alias, the name of a TDatabase component's DatabaseName property, or a fully qualified path name for the location of a Paradox or dBASE table.

TableName is the name of the table for which you want to list the fields.

List is a string list object, created and maintained by the application, into which GetFieldNames adds the names of all fields in the table specified by TableName.

See Also