Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Search
Message
From
12/02/2005 12:50:03
 
 
To
11/02/2005 19:30:07
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00986211
Message ID:
00986302
Views:
22
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
Previous
Reply
Map
View

Click here to load this message in the networking platform