Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Boxes Incremental Search
Message
 
To
23/07/1998 19:07:38
John Goodrich
John A. Goodrich & Associates
San Jose, California, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00120783
Message ID:
00120794
Views:
23
>I have a combo box with the incremental search value set to .t.
>it will only permit one key stroke for the search. I would like to
>be able to input multiple keys to get close to the data record we want. Has anyone had any sucess with this.
John,

The system variable _DBLCLICK controls how long fox will wait for another keystroke before starting a new search string. You can create a combobx class, give it new properties name DblClick and OldDblClick, then isn its GotFocus put;

THIS.OlDblClick = _DBLCLICK
_DBLCLICK = THIS.DblClick

Then in the lostfocus put

_DBLCLICK = THIS.OldDblClick

Give the DblClick property a default vlaue of anything you like in the class designers property sheet. Then use that combo class for your combos. In any fomr you can change the DblClcik property to be whatever you want it ot be. It represents the numer of seconds that fox will wait for another keystroke.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform