Solved

Search Table.

Posted on 1999-01-17
6
173 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now