Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor movement in a Grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00414137
Message ID:
00414194
Views:
21
>I am trying to automate the movement of the cursor in a grid. After the user enters data in the default textbox of column 3, I want the cursor to stay in this colmn and move down one row. I have tried placing the appropriate SKIP command in the LostFocus method but haven't gotten the results I want. I have also tried setting the proper row and column using the ACTIVATECELL function.
>
>Any help would be appreciated

Hi Randy,

I created a simple test case for this and in the Column TextBox LostFocus event I placed the following code which seems to do what you want:
NODEFAULT
SKIP 1
WITH THIS.PARENT.PARENT
    .ACTIVATECELL( RECNO(), 3 )
    .REFRESH
ENDWITH
You might need to play with the parameters some to get it to function exactly the way you want, especially the RECNO() reference, since the records may not be in RECNO() order. Hopefully this will help you find your solution.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform