Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Boxes Incremental Search
Message
 
À
23/07/1998 19:07:38
John Goodrich
John A. Goodrich & Associates
San Jose, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00120783
Message ID:
00120794
Vues:
21
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform