Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detect record navigation
Message
From
20/07/2005 14:54:42
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Detect record navigation
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01034377
Message ID:
01034377
Views:
61
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.
Next
Reply
Map
View

Click here to load this message in the networking platform