?
Solved

Searching a dbgrid

Posted on 2000-04-26
2
Medium Priority
?
232 Views
Last Modified: 2010-04-04
I am using Delphi5 pro.
I am searching a dbgrid using the TDataset.Locate method.
How do I find the next occurance of the searched text after the first is located?

Thanks for your help,
Ivan
0
Comment
Question by:icarey
2 Comments
 
LVL 1

Accepted Solution

by:
msedi earned 200 total points
ID: 2750950
Hello,

as far as I know there's no possibility to go to the next record. Maybe you can use a filter and then step through all found items. Or you do it by hand with
 

  while (not Table.EOF) do
  begin
    // Search method here
    Table.Next;  
  end;

Good luck, Martin
0
 
LVL 1

Expert Comment

by:bozo7
ID: 2751279
Locate only finds the first occurence of the value. To do a find next you need to use TDataset.FindFirst then use TDataSet.FindNext.

Ross
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

839 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