Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Current field when a button is pressed
Message
De
28/06/2000 09:06:54
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00385633
Message ID:
00385661
Vues:
10
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform