Data.Win.ADODB.TADOTable.GetIndexNames

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure GetIndexNames(List: TStrings);

C++

void __fastcall GetIndexNames(System::Classes::TStrings* List);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Data.Win.ADODB TADOTable

Description

Retrieves a list of available indexes for a table.

Call GetIndexNames to retrieve a list of all available indexes for a table. GetIndexNames fills a string list object (such as a TStringList) with the names of the index for the table represented by the TADOTable component (and only that table). Any previous contents in the string list object are completely overwritten by the new information.

List is the string list object, created and maintained by the application, into which the index names are retrieved. This string list object must be created prior to the call to GetIndexNames.

The command line below fills the Items property of a TListBox with the names of indexes for the table represented by ADOTable1.



ADOTable1.GetIndexNames(ListBox1.Items);



ADOTable1->GetIndexNames(ListBox1->Items);



See Also