Run Time Multi Fields Table Filter

Posted on 1998-10-27
Medium Priority
Last Modified: 2010-04-06
How to change multi fields table filter at run time ?
Question by:chio
  • 2

Accepted Solution

ZifNab earned 150 total points
ID: 1344674
Hi chio,

what about this (made this a long time ago for somebody at X-X):

with frmResults.tblActivity do
  {Prepare filter}
  Filter := '';
  if fldACity.text <> '' then AString :=
  if fldEType.text <> '' then AString := AString +
  if fldCuisine.text <> '' then AString := AString +
  if fldHCost.text <> '' then AString := AString +
  if fldLCost.text <> '' then AString := AString +
  frmResults.tblActivity.Filter := AString;
  frmResults.tblActivity.Filtered := true;

you can also use freeware RxLib (You need it!!) and it's filter thingies : http://rx.demo.ru

regards, Zif.

Expert Comment

ID: 1344675
about rxlib, I meant : every programmer can have benifit from it. Offcourse, if you use above code, you don't need rxlib

Featured Post

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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Watch the video to learn how one can deal with PST file corruption issue with an outstanding Kernel for Outlook PST Repair Tool easily. Using this tool, non-technical users can swiftly perform the repair process to restore their essential data witho…

623 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