Bde.DBTables.TDatabase.GetFieldNames
[–] Properties | |
---|---|
Type: procedure function
| |
Visibility: public | |
Source: Bde.DBTables.pas Bde.DBTables.hpp
| |
Unit: Bde.DBTables | |
Parent: TDatabase |
Delphi
procedure GetFieldNames(const TableName: string; List: TStrings);
C++
void __fastcall GetFieldNames(const System::UnicodeString TableName, System::Classes::TStrings* List);
Description
Populates a string list with the names of fields in a table.
Call GetFieldNames to retrieve a list of fields in a table.
TableName names the table whose field names you want added to the list.
List is a TStrings descendant that receives the field names. Any existing strings are deleted from the list before GetFieldNames adds the names of all the fields in TableName.
For example, the following line fills a list box with the names of all fields in the Employee table:
Database1.GetFieldNames('Employee', ListBox1.Items);
Database1->GetFieldNames("Employee", ListBox1->Items);