RAD Studio VCL Reference
|
Creates a new index for the client dataset.
procedure AddIndex(const Name: string; const Fields: string; Options: TIndexOptions; const DescFields: string = ''; const CaseInsFields: string = ''; const GroupingLevel: Integer = 0);
__fastcall AddIndex(const AnsiString Name, const AnsiString Fields, TIndexOptions Options, const AnsiString DescFields = '', const AnsiString CaseInsFields = '', const int GroupingLevel = 0);
Call AddIndex to create a new index for the client dataset.
Name is the name of the new index.
Fields is a semicolon-delimited list of the fields to include in the index.
Options is a (potentially empty) set that can include up to two TIndexOptions values. The valid members for that set include ixDescending (specifying that the index sorts in descending alphanumeric order) and ixCaseInsensitive (specifying that the index should ignore case when sorting).
CaseInsFields is a semicolon-delimited list of field names. Use CaseInsFields instead of an Options value that includes ixCaseInsensitive to create an index that is case-insensitive on some fields and case-sensitive on others. All fields named in CaseInsFields are sorted without regard to case.
GroupingLevel is the default grouping level supported by the index. When the client dataset uses this index, grouping information is automatically available for subgroups defined by up to GroupingLevel fields in the index. (If the client dataset uses maintained aggregates, information about more deeply nested groups can become available when the aggregates are defined on a grouping level greater than the default value of the index). GroupingLevel can be any value from 0 to the number of fields in the index.
Adding a New Index
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|