Subject Access Violation with OnFilterRecord in TIBOTable
Author Maik Wojcieszak
Hi,

If I use TIBOTable and set Filtered := true, assign the EventHandler for OnFilterRecord
I get an EAccessViolation in

function TIB_BDataset.CheckRecordFilter( ARow: TIB_Row ): boolean;
begin
Result := true;
if ( ARow.RowState <> rsNone ) and Assigned( FOnFilterRecord ) then
OnFilterRecord( ARow, Result );
end;

The debugger tells me OnFilterRecord is not available.

I tested it also with TIBOQuery and it worked fine.

Can anyone tell me if this is a bug or did I make a mistake ???

If I create the EventHandler with the ObjectInspector in Delphi I get

procedure Tdbconn.TreeTabFilterRecord(DataSet: TDataSet;
var Accept: Boolean);

so this might explain why the handler is not available when I try to
call it with a TIB_Row parameter.

cu
maik

-------------------------------------------------
wobe-team
Maik Wojcieszak

Schauenburgerstr. 116
D-24118 Kiel

Tel.:+49(0)431-5606-845
Fax.:+49(0)431-5606-849






[Non-text portions of this message have been removed]