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.
=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.