Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Test for row change in grid
Message
From
14/08/2001 23:55:31
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00542790
Message ID:
00543881
Views:
10
>I want to test for a user moving from one record (row) to another in a grid. I can figure out how to do this. Any help would be appreciated.

Try code like this in your BeforeRowColChange
if mdown() *We clicked somewhere
	lnNewRow = 0
	this.GridHitTest(mcol(), mrow(), '', @lnNewRow)
	if lnNewRow <> this.relativerow
		*** We are moving rows!
	else
		*** We are moving columns!
	endif
else
	if inlist(lastkey(), 18, 3, 5, 24)
		*** We are moving rows!
	else
		*** We are moving columns!
	endif
endif
BTW, is this VFP7? THere is new functionality built in for this in 7.0.
Previous
Reply
Map
View

Click here to load this message in the networking platform