Subject Re: [IBO] Event Misfiring
Author guido.klapperich@t-online.de
The OnDataChange-Event fires twice, when you change the data and when you
scroll the dataset.
procedure TdmVessels.dsVNotDataChange(Sender: TIB_StatementLink;
Statement: TIB_Statement; Field: TIB_Column);
begin
if Assigned(Field) then
// DataChange
else
// Scrolling
end;



Kevin Stanton wrote:

> Greetings,
>
> The following event throws an AV w/out the first line of code:
>
> procedure TdmVessels.dsVNotDataChange(Sender: TIB_StatementLink;
> Statement: TIB_Statement; Field: TIB_Column);
> begin
> If NOT Assigned(Field) then Exit;
> ShowMessage('dsVNotDataChange: ' + Field.FieldName);
> end;
>
> Seems like this event is firing way too early, even before the Field has
> been assigned?
>
> Comments?
>
> Kevin
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/