Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListBox Question

Status
Not open for further replies.

ToolGeek

Programmer
Feb 1, 2009
2
US
I'm new to using VFP controls.
I've got a listbox containing approx 5000 company names. If I type the first letter, an indicator will position on the first company with that letter (this is expected).

If I enter 2 or 3 letters in rapid succession, the indicator will position, generally, on the correct company (more refined search - and this is desired).
If I enter the 2 or 3 letters slower, The app will use the last character entered and position on that company (this is not desired).
Is there a property on the listbox that governs the "rate" at which charaters are entered before they are processed?

Thanks.
 
In recent versions of VFP, you need to set a value in _INCSEEK. For older versions (6.0 and earlier, if memory serves), you use _DBLCLICK. In both cases, specify the desired time interval in seconds.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
5000 entries in a list box? That's actually way too many to make it usable. It's too much for the user to wade through, even with incremental seek. There are other ways to handle data searching.

Craig Berntson
MCSD, Visual FoxPro MVP,
 
_Incseek = 2.00 is what we use.

The lower the number the faster you have to type and vice versa
 
Sorry should have elaborated, if you put this in your First program (calling program), All Listboxes will use it, otherwise put it in your listbox’s Init() and only that listbox will use it.
 
Thanks for the help; _INCSEEK changes did the trick. Also thanks for the recommendation to place the change in the init().

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top