Subject Re: [IBO] Refreshing a IBODataset
Author Luiz Alves
Jason in IBODataset.pas, I did:

public
...
...
procedure InvalidateRows;
procedure RefreshRows;
procedure RefreshKeys;

// I add
procedure Refresh;

procedure RefreshFilteredRows;
....
....

Then, I create:
procedure TIBODataset.Refresh;
begin
CheckActive;
UpdateCursorPos;
InternalDataset.Refresh;
Resync([]);
UpdateCursorPos;
DoBeforeRefresh;
CheckBrowseMode;
UpdateCursorPos;
Resync([]);
try
InternalRefresh;
finally
UpdateCursorPos;
Resync([]);
DoAfterRefresh;
end;
end;

The problem disappears with it. Can you see, if Is this correct?


Luiz.

----- Original Message -----
From: "Jason Wharton" <jwharton@...>
To: <IBObjects@yahoogroups.com>
Sent: Monday, January 21, 2002 6:40 PM
Subject: Re: [IBO] Refreshing a IBODataset


> This sounds like a whole different issue than what you are talking about
> here.
> Please get this error to duplicate without the InfoPower and send it to
me.
>
> Jason Wharton
> CPS - Mesa AZ
> http://www.ibobjects.com
>
>
> ----- Original Message -----
> From: "Luiz Alves" <cprmlao@...>
> To: <IBObjects@yahoogroups.com>
> Sent: Monday, January 21, 2002 1:34 PM
> Subject: Re: [IBO] Refreshing a IBODataset
>
>
> > ----- Original Message -----
> > From: "Jason Wharton" <jwharton@...>
> > > You haven't told us where the AV is.
> > > I think your packages might not be compiled correctly.
> > >
> >
> > I'm sure the packages are Ok.
> > I am using Infopower IBO derived components.
> >
> > This problem also happended on IBO4F.n.
> >
> > The AV occurs when I try scroll the TDBGrid on ScrollBar. Some rows are
> > blank after the refresh and others are filled with data.
> >
> >
> > Luiz.
>
>
>
>
___________________________________________________________________________
> IB Objects - direct, complete, custom connectivity to Firebird or
InterBase
> without the need for BDE, ODBC or any other layer.
>
___________________________________________________________________________
> http://www.ibobjects.com - your IBO community resource for Tech Info
papers,
> keyword-searchable FAQ, community code contributions and more !
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>