Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving to a new row in a grid
Message
 
 
À
14/05/2001 19:51:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00507094
Message ID:
00507111
Vues:
12
This message has been marked as the solution to the initial question of the thread.
>How do I test that the user is moving to a new row in a grid before the current row loses focus.
>
>I have been working on this all day because I want to run a procedure using the current row's data only when a new row is selected.
>
>Any ideas?
>
>Thanks,
>
>Mitch

Hi Mitch,

I don't know, if it would help, but this is what I have. Our grid class has a property nCurRec. In AfterRowColChange event of the grid I check, if this.nCurRec<>recno(this.RecordSource) && (usually I just use a table name here), and if it doesn't, I execute some code and this.nCurRec=recno(). You can also use the similar code in BeforeRowColChange event. So, using this property, I can easily identify, was it movement between rows or between columns.

HTH
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform