Solved

DBNavigator next button problem

Posted on 2006-07-07
5
466 Views
Last Modified: 2010-04-04
I'm using dbNavigator to go through the results of my Query.  The next and back buttons will be enabled even when there is no next or previous record to go to until it gets to a non-existent record.  

For example if I'm on the last record of my result set the next button is still enabled (which I don't want it to be) when I click it the button freezes for a second or two then disables itself.  The back button does the same thing except there is no pause trying to go back farther than it can.  Any idea why this is happening or how to fix it?  
0
Comment
Question by:ICPooreman
  • 3
  • 2
5 Comments
 
LVL 26

Expert Comment

by:EddieShipman
ID: 17061701
I do not see that behavior, what DB are you using?
0
 

Author Comment

by:ICPooreman
ID: 17061723
I'm using BDE with DBase Table
0
 
LVL 26

Expert Comment

by:EddieShipman
ID: 17061849
Do a First and then Last just after opening the table. Sometimes, the BDE got real goofy with
it's BOF and EOF markers.
0
 

Author Comment

by:ICPooreman
ID: 17061979
Well The first and last controls work properly but using them when I open the table doesn't change how the previous and next buttons work.  

Also whats really weird is the pause I experience on the last next is dependent on the type of query I do.  For example if I'm sorting through records generated by the query
Select * From TableName Where Value between '000' and '999' I get no pause on the last next hit.
but if the query looks like
Select * From TableName Where Value like '0%'
I'll get a pause when I'm on the last record and hit next.

I don't know if that helps or makes it more confusing.
0
 
LVL 26

Accepted Solution

by:
EddieShipman earned 500 total points
ID: 17062471
That is not what I meant.

I meant something like this:

Query1.DisableControls;
Query1.Open;
Query1.Last;
Query1.First;
Query1.EnableControls;

0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to convert wav to mp3 in delphi 9 200
code issue 8 130
error 1.1 400 Bad request idhttp delphi 18 87
firemonkey Android Listview Sort items 7 13
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question