Liz. A. Woodhouse'; $attrinfo = ''; $audience = "1"; $versions = "Applies to: Paradox 5.0 and later"; $postdate = "15 September 2000"; $pagearea = 2; $navlinks = 'Paradox:'; // Define your META Keywords here $metakeys = "paradox objectpal type ahead search keyboard searching locate find"; // Define the META description here; should be a simple, short sentence $metadesc = "Shows one way to implement Quicken-style type ahead searching"; ?>

Question: How do I implement type ahead searching?

Answer: There are several possible approaches, depending on your needs and the specific design of your form. If you wish to use this to:

Other approaches are certainly possible, again depending on your situation, needs, and application design.

Generally, the code triggering the search goes into the keyChar() event of the object where you're entering the search criteria. Be sure to place this after the default behavior of the event (e.g. use doDefault as your first statement).

A demonstration of these techniques is available. Please note that it requires the Customer, Vendor, and Stock tables provided in Paradox's :Sample: directory.

If you haven't installed the sample files or cannot locate them, copies are available, though please remember to run the enclosed SetAlias script to define the :Sample: alias.