Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Re: Grid
Miscellaneous
Thread ID:
00018248
Message ID:
00018293
Views:
36
>I have a grid on a form. There are 9 fields. Not all of the fields have a value. I put an add button to add another record and it works great. the problem is when the user hits the add buttom the grid does not go to where the user needs to be. Instead it goes to the last column the user was, and not the first column. In other words if He/She was in the 3ed column and hit the add button than after hitting the tab key He /She would be at the new record but only at the 3ed column. Please help. Thanks.

You can get the row number with

nRow = thisform.grid.activerow()

and then put this plus your column number into the ACTIVATECELL() method,
thisform.grid.activatecell(nRow, nCol) where nRow is the row found above and nCol is the column you want the user to start with.

Barbara P.
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform