RAD Studio VCL Reference
|
Specifies the fields of the index that are sorted in descending order.
property DescFields: string;
__property AnsiString DescFields;
Set DescFields to a string that lists the names of fields in the index, separated by semicolons. The ordering imposed by the index on the fields specified in DescFields is descending. Fields in the index definition but not in the DescFields list use the default ascending order. It is possible for a single index to have fields using both ascending and descending ordering.
For a field to be included in DescFields, the field must be included in the fields on which the index is based. These fields are specified in the Fields property of the TIndexDef object.
... Table1->IndexDefs->Add("MultiIndex","TransDate;Company;State", TIndexOptions() << ixUnique); Table1->IndexDefs->Items[Table1->IndexDefs->Count-1]->DescFields = "TransDate;Company"; ...
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|