General information
Category:
Coding, syntax & commands
Title:
Keeping track of grid position - recno()
Environment versions
Network:
Windows 2003 Server
I have a gird, with a column with a check box... User selects records to process via checkbox. Then user presses a button to process the records selected.
Once completed I would like to return to wher user left off.
This is what I'm presently doing and the result.
Prior to processing, which is done via a tableupdate, i move the record pointer 1. I get the primary key for this record.
2. I do the update.
3. I locate the primary record. (via a seek(lnPrimaryKey,table,pkindex)
4. then I set focus to the grid.
The problem is the grid gets focus at the top of the grid, not where user left off.
(If I look in debugger, prior to the setfocus call of the grid, the record pointer is on the record. Once the grid.setfocus is called, the record pointer points to the first record and that's where the grid is.)
Mike
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only