Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect record navigation
Message
De
20/07/2005 14:54:42
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Detect record navigation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01034377
Message ID:
01034377
Vues:
63
Hi guys, (apologies for the long winded preamble)

I'm working on a record navigation control based on a list box. I need a way to track record navigation from movement in a list box.

Most of my other table navigation is done from a 'searchable' text box class I made a long time ago. It has top, bottom, prev and next methods in it, fired by different keystrokes, mainly.

Using optimistic row buffering, I need to perform an tablerevert(), when the user wants to move to a new record, thus preventing unintended saving of changes. This is no problem in the text box implementation, because you get to control when the move is made.

Example of one of those methods is here, though they are all similar.
*** GoTop
=Tablerevert(.T.)
Thisform.Revert()
GO TOP
If (This.ltracknavigation)
	This.UpdateOnNav()
Endif

Thisform.Refresh()
Is there any way to do something similar in a list box or a grid, where you can hook in a bit of navigation code before the record pointer changes? I have not had much luck yet.

Thanks,

Jim
Jim Newsom
IT Director, ICG Inc.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform