Страница 1 из 1

разница - IndexFieldNames и IndexNames

Добавлено: 25 авг 2009, 02:15
Mixail
Поясните пожайлуста разницу между свойствами IndexFieldNames и IndexNames, компонентов ADOtable и AdoQuery. И их способы применения (когда какой нужно применять). У AdoQuery нет св-ва IndexFieldNames а есть IndexNames - сплошные загадки.
Помогите.

Re: разница - IndexFieldNames и IndexNames

Добавлено: 25 авг 2009, 10:00
Duncon
IndexFieldNames - название поля
IndexNames - индекс поля

А вообще го в гугл, такие вопросы нагугливаются в течении минуты.

Re: разница - IndexFieldNames и IndexNames

Добавлено: 25 авг 2009, 14:24
Игорь Акопян
такие вопросы ещё быстрее проясняются по F1 ;)
немного расширю Dunconа: в IndexNames указывается имя индекса, который должен быть создан в БД.

Re: разница - IndexFieldNames и IndexNames

Добавлено: 25 авг 2009, 16:54
Mixail
Хороший форум, ничего не скажеш. Хотелось услышать развернутый ответ от знающих людей, а тут тебя посылают в гугл да на F1.

Re: разница - IndexFieldNames и IndexNames

Добавлено: 25 авг 2009, 17:47
Duncon
Если ты лентяй - есть "решите мне задачку" и "заказы для программистов"

Re: разница - IndexFieldNames и IndexNames

Добавлено: 25 авг 2009, 20:42
Mixail
Да все я могу, если надо, то в sorse покапаюсь и все для себя выясню.
А что лентяй то правда. Зачем делать лишнюю работу, когда есть возможность спросить.
Говорите я лентяй - а вы лучше, если ВЫ толком знаете что к чему, то обьяснить ножно в 5 предложениях и не выеживаться. А если четких знаний нет, то конечно лучше в гугл послать...
Форум для того и создан чтобы помогать друг другу.

Re: разница - IndexFieldNames и IndexNames

Добавлено: 26 авг 2009, 10:14
Игорь Акопян
нет мне это нравится...
Syntax
[Delphi] property IndexFields: TField read GetIndexField write SetIndexField;
Description
IndexFields provides a zero-based array of field objects, each of which corresponds to a field in the current index. Index is an ordinal value indicating the position of a field in the index. The first field in the index is IndexFields[0], the second is IndexFields[1], and so on.
Syntax

[Delphi] property IndexFieldNames: string read GetIndexFieldNames write SetIndexFieldNames;
Description
Use IndexFieldNames as an alternative method of specifying the sort order of a recordset. IndexFieldNames is a direct implementation of the Sort property of the ADO recordset object, with the field list from IndexFieldNames being used for the Sort property. The actual sorting of data occurs on the OLE DB side and use of indexes for the sort depend on the particular provider.

To use IndexFieldNames to establish a recordset's sort order, the recordset must have been opened using a client-side cursor (the dataset component's CursorLocation property must be clUseClient). An exception is raised on attempts to use IndexFieldNames with server-side cursors.

IndexFieldNames may be used to set the sort order for the detail table in a master-detail link, increasing the performance of the link. However, use of IndexFieldNames is not required for master-detail links.
так было бы лучше? или перевести?

Re: разница - IndexFieldNames и IndexNames

Добавлено: 26 авг 2009, 11:09
Duncon
Не люблю таких чертей приходят, мало того что троль так ещё и наезжает на людей, банить таких нада.