Subject RE: [IBO] Re: TIB_Query.bof and eof not working
Author IBO Support List
I recall putting in special logic with the navigation bar so that it would feel ahead and see if the next row was eof or not. You will need to use similar code in your applications.
 
          nbPrior:
          begin
            if RowNum = BofRowNum + 1 then
            begin
              if ( not Unidirectional ) then
                ValidateRows( BofRowNum, BofRowNum );
            end;
            if Unidirectional or ( RowNum > BofRowNum + 1 ) then
              Prior
            else
              SysStateChanged;
          end;
          nbNext:
          begin
            if RowNum = EofRowNum - 1 then
            begin
              if ( not Unidirectional ) then
                ValidateRows( EofRowNum, EofRowNum );
            end;
            if Unidirectional or ( RowNum < EofRowNum - 1 ) then
              Next
            else
              SysStateChanged;
          end;
Hope this helps,
Jason Wharton
 


From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com]
Sent: Monday, December 22, 2014 1:43 PM
To: IBObjects@yahoogroups.com
Subject: [IBO] Re: TIB_Query.bof and eof not working

Well, even though the active row is the last one, eof is still false whilst the next button of the navigation bar is greyed out.

Florian