Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid BeforeRowColChange
Message
From
26/11/1999 09:45:21
 
 
To
26/11/1999 07:59:41
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00295681
Message ID:
00295701
Views:
28
Hi Rex,

>How can I tell in the Grid.BeforeRowColChange method if I am trying to change the Row or the Column in the grid?

If you can wait untill AfterColRowChange its easier (save the column number, save it in a property and compare it too tnColIndex), but the only way I know how to do it in Before.. is like this:
LPARAMETERS nColIndex

if inlist(lastkey(), 5, 24)
	debugout 'Row Changed'
else
	debugout 'Col Changed'
endif
Now, this will not tell you accuratly when you choose a cell with the mouse, or programmatically. You should be able to trap that though, Good Luck!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform