Solved

table problem 2

Posted on 2000-04-14
4
159 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 50 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

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 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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

734 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