Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying Search Results.. HELP!! :)

Status
Not open for further replies.

SpeedDemon

Programmer
Jan 1, 2001
70
GB
Hi all, I need a little help on some GUI design :)

My problem: How to display search results?

Right, i have a customer file which can be search (well, if I can over come
this... then maybe :) )
However, once it is search (i dont have a problem writing the search
algorithm), I dont know how to display the search results onto a form
dynamically. I'd like the user to be able to pick one of the results, which
will then load a new form showing the record details.

I was thinking a table of some sort, however i have no idea how to display
results within a table, how to make it so they can be clicked to open a new
form etc etc, any help here would be appreciated greatly!

Thanks all!
 
Have you had a look at the TStringGrid component in the help and it's onClick event to trigger your child form?, this may solve your problem. If there's only one col of data, you could maybe use a TMemo. I'd go for the stringgrid I think.

If fed from a database, use the TDBGrid.

lou
 
You are talking about a customer file, is it a {b] file of [/b] structure?
Maybe it is easier to put it in a database, like paradox then you have a lot of components to do the work for you. S. van Els
SAvanEls@cq-link.sr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top