Icon View Incident Report

Minor Minor
Reported By: Joe Real
Reported On: 4/29/2004
For: Version 4.05 Build 1
# 1681 Filters Are Being Parsed and Verified When the Filtered Property is False

I have trouble the way the new filtering method works in DBISAM 4.05 and in Delphi 7. I have this old code (below) that works perfectly with DBISAM 2.12 and Delphi 5.00.

I get a DBISAM error right after setting MyTable.Filtered := True which is logically expected since MyNonexistingIntegerField do not exist. With DBISAM 4.05, the DBISAM error happens right after I set the value of MyTable.Filter. This should never happen simply because I set the MyTable.Filtered property to False before the Filter is set.

MyTable.Open;
Try
 MyTable.DisableControls;
 MyTable.AutoCalcFields:=False;
 MyTable.Filtered := False;
 MyTable.Filter := 'MyNonexistentIntegerField > 0';
 MyTable.Filtered :=True;
finally
 MyTable.EnableControls;
 MyTable.AutoCalcFields:=True;
end;



Resolution Resolution
Fixed Problem on 5/6/2004 in version 4.06 build 1
Image