Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement