IndexFieldNames issue
Posted: Thu 04 Apr 2013 10:44
I'm using version 8.6.12. It appears that something has changed with IndexFieldNames such that double quotes are no longer allowed in the column name. This causes a problem if the column name includes a space. Our original code looks like:
-Mark Ford
Benthic Software
Code: Select all
FldName := FDataSet.FieldDefs[ADataCol].DisplayName;
FldName := AnsiQuotedStr(FldName, '"'); // No longer allowed?
case ASortDir of
sdAsc: SortString := FldName + ' ASC CIS';
sdDesc: SortString := FldName + ' DESC CIS';
end;
FDataSet.IndexFieldNames := SortString;
Benthic Software