Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Incremental search
Message
De
24/07/2001 12:07:00
 
 
À
24/07/2001 11:15:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00534417
Message ID:
00534455
Vues:
12
>Does anyone have a set routine for doing an incremental search in a grid? ie: Users type in a word, and as they type in each character, it searches/locates the closest match.

If you've got the book 1001 things you wanted to know about VFP (Akins/Kramek/Schummer) you can look up a solution to this (and lots of other common problems) in there. Its a good book to have.

The solution I use (and I think the book's is similar) is pretty much intercepting keystrokes, and adding thenm together and doing a search on them. Also, store the time you last hit akey, if its been more than two seconds, clear out teh string to start the search over.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform