Solved

Search Table.

Posted on 1999-01-17
6
181 Views
Last Modified: 2010-04-06
How can i search table in delphi from edit-box
0
Comment
Question by:tolvumeistari
[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
  • 4
  • 2
6 Comments
 
LVL 17

Expert Comment

by:inthe
ID: 1362249
is this ok:
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
var
  Search: String;
begin
if key = #13 Then begin {#13 being enter key}
 Search:=Edit1.Text;
  Table1.FindKey([Search]);
 end;
end;
Regards Barry
0
 

Author Comment

by:tolvumeistari
ID: 1362250
Great!! Can you see me how to use Findnearest and some SQL Examples

Thanks.
0
 
LVL 17

Expert Comment

by:inthe
ID: 1362251
ok 2 things
1)  why you reject my answer
2)  i try to find out some examples for you

Regards Barry  
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 17

Expert Comment

by:inthe
ID: 1362252
B.T.W for findnearest just replace findkey with findnearest
0
 
LVL 17

Accepted Solution

by:
inthe earned 20 total points
ID: 1362253
For sample application open the demo's in delphi\demos\.
you should also read Database Dektop's help under Contents-SQL
There's a lot of helpful information on your Delphi cd-rom.  There is two help files, one for local SQL with  BDE, and one for the Interbase SQL there's also
a manual in Adobe Acrobat format that came with Delphi 1 that will be on your cd-rom.
with all the examples in these help files you should be on your way.

0
 

Author Comment

by:tolvumeistari
ID: 1362254
Sorry....

This answer is excellent
Thanks again...
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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 The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

695 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