Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving to a new row in a grid
Message
 
 
To
14/05/2001 19:51:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00507094
Message ID:
00507111
Views:
14
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform