Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ryss Unger
  Where is Ryss Unger?
 Cape Town
 South Africa
 Ryss Unger
 To: Asmed Miranda
  Where is Asmed Miranda?
 Lowell
 Massachusetts - United States
 Asmed Miranda
 Tags
Subject: RE: How to set focus to a specific line in a grid??
Thread ID: 294 Message ID: 296 # Views: 3 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Tuesday, May 22, 2001 10:07:41 AM         
   


> Hi all, am developing a point of sale application and using a grid to capture items to be sold, my problem is that let's say user is at line 3 of the grid but need to check the items database to find the item code to enter if not known, user presses f5 to get item lookups routine, once it's found return to grid with item code, but instead of landing from where it left it clears the grid and position at first line, previous items are not gone from grid because if i saved the sale and go to check sales database all line items are there.
>
> Thanks for any input on how to solve this.

Hi ,
I think thisform.grid1.setfocus should do the trick but may depend on other code u have on gotfocuse event etc. Also this assumes record pointer is still on recNo() = 3. if not, select the alias and " go 3" and then set focus

You do not spoecify your data source so let us know that.

Also would only use F5 etc if no mouse avaiable.
HTH
R
Ryss

ENTIRE THREAD

How to set focus to a specific line in a grid?? Posted by Asmed Miranda @ 5/22/2001 9:54:58 AM
RE: How to set focus to a specific line in a grid?? Posted by Ryss Unger @ 5/22/2001 10:07:41 AM
RE: How to set focus to a specific line in a grid?? Posted by Asmed Miranda @ 5/22/2001 11:06:05 AM
RE: How to set focus to a specific line in a grid?? Posted by Paul Culbertson @ 5/22/2001 11:52:12 AM
RE: How to set focus to a specific line in a grid?? Posted by Ryss Unger @ 5/22/2001 12:26:35 PM
RE: How to set focus to a specific line in a grid?? Posted by Eric den Doop @ 5/22/2001 12:55:55 PM
RE: How to set focus to a specific line in a grid?? Posted by Asmed Miranda @ 5/22/2001 1:02:32 PM
RE: How to set focus to a specific line in a grid?? Posted by Ryss Unger @ 5/22/2001 1:56:42 PM