Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Searching a dbgrid

Posted on 2000-04-26
2
Medium Priority
?
230 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

618 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