Advertisement

01.11.2008 at 10:37AM PST, ID: 23076503
[x]
Attachment Details

Working with ADO Components in Delphi 2007 WIN32

Asked by rhawk in Delphi Database, Delphi Programming

Tags: Delphi

I am using a tADOTable connected to a bdgrid to display the contents of the table. I want to implement a search so the user can enter a partial value that can be contained ANYWHERE in a field value (not just as a prefix) and then hit the search button. I can move the grid to the record position once I know it. Also if they hit search again, it should look for the NEXT match, and so on till there are no more matches, then I can offer them to start at the top again.

Using the Datasets find and locate do me no good since I can only search on a field prefix. If the field contained "This is the current record" I want to be able to locate that record searching on "the" or it is were more like the tsql like then "%the%" or "*the*".

I can scan the grid manually, but this is slow and you can tell the speed is not good.

Anyone know how I can do this?

Thanks,

DavidStart Free Trial
[+][-]01.11.2008 at 11:21AM PST, ID: 20639279

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.11.2008 at 11:22AM PST, ID: 20639282

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.11.2008 at 11:25AM PST, ID: 20639309

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.11.2008 at 11:31AM PST, ID: 20639367

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.11.2008 at 11:31AM PST, ID: 20639370

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.11.2008 at 11:38AM PST, ID: 20639437

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.11.2008 at 11:58AM PST, ID: 20639685

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.11.2008 at 12:09PM PST, ID: 20639813

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.11.2008 at 12:35PM PST, ID: 20640091

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.11.2008 at 01:09PM PST, ID: 20640470

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.11.2008 at 01:51PM PST, ID: 20640967

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Delphi Database, Delphi Programming
Tags: Delphi
Sign Up Now!
Solution Provided By: SteveBay
Participating Experts: 2
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628