Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Current field when a button is pressed
Message
From
28/06/2000 09:06:54
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00385633
Message ID:
00385661
Views:
11
>I have a grid which is read only, & the user can move around using the cursor keys (or mouse).
>
>I want to detect where the cursor is in the grid, when a user presses a command button on the bottom of the screen.
>
>I have a feeling this will be somthing pretty obvious but hey we all have bad days!

When the user clicks a command button, the cursor isn't anywhere in the grid, it's on the command button. You can check the last row that the user was on by checking the current record of the RecordSource for the grid. If you want to track the last column, you'll have to employ some code that stores this information in a custom property of the grid or form, and run it from the grid's AfterRowColChange event.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform