Data.Win.ADODB.TADOConnection.GetFieldNames
Delphi
procedure GetFieldNames(const TableName: string; List: TStrings);
C++
void __fastcall GetFieldNames(const System::UnicodeString TableName, System::Classes::TStrings* List);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Data.Win.ADODB.pas Data.Win.ADODB.hpp |
Data.Win.ADODB | TADOConnection |
Description
Populates a string list with the names of fields in a table.
Call GetFieldNames to retrieve a list of fields in a table. The names of the fields are put into the already-existing string list object specified in the List parameter. Specify the table for which to retrieve the names of fields in the TableName property.
ADOConnection1.GetFieldNames('Employee', ListBox1.Items);
ADOConnection1->GetFieldNames("Employee", ListBox1->Items);