Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

table problem 2

Posted on 2000-04-14
4
Medium Priority
?
163 Views
Last Modified: 2010-04-04
i want to use edit1.text in table.filter
i try:
table1.filter:='name ='+edit1.text;

what's wrong this :)

janozzy
0
Comment
Question by:janozzy
[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
  • 2
  • 2
4 Comments
 

Expert Comment

by:SuperSy
ID: 2717079
Nothing!  

If you are saying that the filter is not working, that is a different issue.  Even though there is nothing wrong with

table1.filter := 'name = ' + edit1.text;

the filter will not work unless you set TDataset.filtered to True.  

In any case, tell what's wrong and how.  =)

0
 

Author Comment

by:janozzy
ID: 2717131
filtered is set to true

i write quake in edit1.text
then comes error FIELD QUAKE NOT FOUND

0
 

Accepted Solution

by:
SuperSy earned 200 total points
ID: 2717164
I think you have to put the text in single quotes. (name = 'quake' instead of name = quake)
Right now your program is testing for equality of field 'name' and field 'quake', and of course the second one will not be found.  

Try this:
Table1.Filter := 'Name = ''' + Edit1.Text + '''';
0
 

Author Comment

by:janozzy
ID: 2717180
thank supersy
now filter works:)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

636 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