RxFPC: fix compile with latest lazarus - utf8

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4949 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
alexs75
2016-07-14 06:14:30 +00:00
parent 6eb49b9233
commit 94f7f9f8ce
2 changed files with 10 additions and 3 deletions

View File

@ -67,11 +67,18 @@ begin
if ADataSet is TZAbstractRODataset then
begin
TZAbstractRODataset(ADataSet).SortedFields:=FixFieldName(FieldName);
if Asc then
FieldName := FixFieldName(FieldName) + ' Asc'
else
FieldName := FixFieldName(FieldName) + ' Desc';
TZAbstractRODataset(ADataSet).SortedFields:=FieldName;
{
if Asc then
TZAbstractRODataset(ADataSet).SortType:=stAscending
else
TZAbstractRODataset(ADataSet).SortType:=stDescending;
TZAbstractRODataset(ADataSet).SortType:=stDescending;}
end;
end;