Solved

table problem 2

Posted on 2000-04-14
4
154 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
  • 2
  • 2
4 Comments
 

Expert Comment

by:SuperSy
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
thank supersy
now filter works:)
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
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.

744 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