Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keeping track of grid position - recno()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Keeping track of grid position - recno()
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01292690
Message ID:
01292690
Vues:
72
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
Fil
Voir

Click here to load this message in the networking platform