Page 1 of 1

[ODAC 5.70.0.29 CLR]Filter Error

Posted: Thu 13 Apr 2006 08:01
by nschmied
Hello,

I have found a bug with Filter option in VCL.NET application.

This error occure when I use left and right Bracket.
For Ex.

(GCLCODE=1)

But in Win32 it's work, I have found a difference between Win32 and DotNET.
In win32 the StringList BoolSymbolLexems.TEXT return this
( ) + - = > >= [ ]

but in DotNET BoolSymbolLexems.TEXT return this
- ( ) [ ] + = > >=

It's not in same sort.

N.Schmied

Posted: Thu 13 Apr 2006 08:16
by nschmied
Hi,
I have found solution,

Your code

Code: Select all

function CRCmpStrings(List: TStringList; Index1, Index2: Integer): Integer;
begin
  Result := CompareStr(List[Index1],
                       List[Index2]);
end;
And my code that resolve bug

Code: Select all

function CRCmpStrings(List: TStringList; Index1, Index2: Integer): Integer;
begin
  {$IFDEF CLR}
  Result := System.String.CompareOrdinal(List[Index1],List[Index2]);
  {$ELSE}
  Result := CompareStr(List[Index1],
                       List[Index2]);
  {$ENDIF}
end;
:wink:

Posted: Fri 14 Apr 2006 12:21
by Challenger
Thank you for assistance. We fixed this problem. This fix will be included in the next build of ODAC.