Solved

Search Table.

Posted on 1999-01-17
6
178 Views
Last Modified: 2010-04-06
How can i search table in delphi from edit-box
0
Comment
Question by:tolvumeistari
  • 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
Multiple image collision 13 80
tidtcpserver connection lost handle 2 103
Multi-layered image in FireMonkey 9 49
Slow Restore if incremental backups using RDiff.exe 4 31
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

830 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