Delphi Database, Delphi Components from ComponentAce
Products Download Order Contact us
TABSAdvIndexDef.CaseInsFields
TABSAdvIndexDef
Top 


Specifies which fields of the index are case-insensitive.

property CaseInsFields: String;

Description
Set CaseInsFields 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 CaseInsFields is case-insensitive. Fields in the index definition but not in the CaseInsFields list use case sensitive ordering (the default for the database type). It is possible that a single index can have fields using both case-insensitive and case-sensitive ordering.

For a field to be included in CaseInsFields, the field must be included in the fields on which the index is based. These fields are specified in the Fields property of the TABSAdvIndexDef object.

In the example below, the CaseInsFields property is given a list of two table fields for the index being created: LastName and Company.

with ABSTable1 do begin
  ...
  with AdvIndexDefs do begin
    with AddIndexDef do begin
      Name := 'MultiIndex'

      Fields := 'LastName;Company;State'

      Options := [ixUnique];
    end;
    Items[IndexDefs.Count - 1
].CaseInsFields := 'LastName;Company';
  end;
  ...
  CreateTable;
end;


        © 2003 - 2024 ComponentAce  | .net zip component | barcode for .net | delphi zip component | delphi database Dec 23, 2024