Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Keeping track of grid position - recno()
Versions des environnements
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement