Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Test for row change in grid
Message
De
14/08/2001 23:55:31
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00542790
Message ID:
00543881
Vues:
15
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform