>>>I have coded a program in vfp50. In my program, I have a
>>>GRID that lets the user pick the STATE. My user wants to put in the first letter if the STATE and goto the STATE starting with that letter.
>>>Any ideas
>>
>>Assuming that your grid use alias 'Table1' as recordsource having index on field 'state'. Then:
>>Select table1
>>Set near on
>>Seek "B" && or any other letter you supply
>>Thisform.Grid1.Refresh
>
>thanks Ed
>In the KeyPress event, I will...
>I will put my code.
>Not sure how to handle the SEEK.
>Where and how do I get the letter to seek on?
>The GRID opens up with the setfocus on the first
>record of the grid. and.. the grid is read only..
Rob, if your user wants to enter a letter, then, I guess, you should supply him a place for this, e.g. textbox. Why are you not sure how to handle SEEK?
Edward Pikman
Independent Consultant