Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Search
Message
De
12/02/2005 12:50:03
 
 
À
11/02/2005 19:30:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00986211
Message ID:
00986302
Vues:
21
Make sure the cursor/table is index.
In the text.InteractiveChange method do the following.

*****************************
thisform.lockscreen=.t.
local lcLastnm

select customer
lcLastnm=allt(this.value)
seek lcLastnm

ThisForm.myGrid.setfocus()
this.setfocus()

thisform.myGrid.refresh()
thisform.lockscreen=.f.
*********************************

Works every time.



>Hello,
>
>I am looking for a way to do a search in a grid that has 2 columns, indexed on first. Example, I want to type "1234" and have the grid positioned to the matching record. Similar to the listbox IncrementalSearch functionality.
>
>I could trap one keyboard click and use the keypress method but how would I adjust for multiple key stokes like "1234"?
>
>I do have allowcellselection set to false so the grid does act like a list box.
>
>Thanks,
>
>Jeff
Work as if you don't need money
Love as if you've never been hurt before
Live as if this is your last day to live
Dance as if no one's watching
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform