FireDAC.Comp.DataSet.TFDIndexes.FindIndexForFields

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FindIndexForFields(const AFields: String;  ARequiredOptions: TFDSortOptions = []; AProhibitedOptions: TFDSortOptions = []): TFDIndex;

C++

TFDIndex* __fastcall FindIndexForFields(const System::UnicodeString AFields, Firedac::Stan::Intf::TFDSortOptions ARequiredOptions = Firedac::Stan::Intf::TFDSortOptions() , Firedac::Stan::Intf::TFDSortOptions AProhibitedOptions = Firedac::Stan::Intf::TFDSortOptions() );

Properties

Type Visibility Source Unit Parent
function public
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
FireDAC.Comp.DataSet TFDIndexes

Description

Finds an existing TFDIndex object by sorting fields and options.

Use the FindIndex method to find a view by sorting fields and options. If the view is not found, FindIndexForFields returns nil.

The matched view must have fields starting from AFields. The fields can include more fields than AFields. Also, all ARequiredOptions options must be included into Options, while no AProhibitedOptions option must be included into Options.

See Also