RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TADOTable.GetIndexNames Method

Retrieves a list of available indexes for a table.

Pascal
procedure GetIndexNames(List: TStrings);
C++
__fastcall GetIndexNames(TStrings List);

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);

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!