Data.Win.ADODB.TADOConnection.GetFieldNames
[–] Properties | |
---|---|
Type: procedure function
| |
Visibility: public | |
Source: Data.Win.ADODB.pas Data.Win.ADODB.hpp
| |
Unit: Data.Win.ADODB | |
Parent: TADOConnection |
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. 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);