Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Navigation
Message
From
14/03/2002 13:15:42
 
 
To
14/03/2002 11:36:28
Bill Emery
MedScribe Information Systems
Sylvania, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00632811
Message ID:
00632873
Views:
11
>I'm using VFP 6 SP5 on Windows ME.
>
>I have a form containing a grid which is bound to a table. I created the grid with the wizard.
>
>When the user enters data into a cell and hits the enter key, the cursor advances to the next field/cell, moving left to right and wrapping when it comes to the end. What the user would like to see is the cursor advancing to the next row and remaining in the same cell/field.
>
>I've tried using the keyboard verb in the lost focus event, but it doesn't work well as other fields are accessed before the cursor comes to rest in the next row, depending on the valid clauses of the other fields. It seems like I'm missing something obvious here - can someone please point me in the right direction? Thanks in advance!

How about something like this in the keypress event using the activatecell method.
LPARAMETERS nColIndex

IF nColIndex=Column # and INLIST(LASTKEY(),4,9,13)
  thisform.grid1.ActivateCell(thisform.grid1.Relativerow+1,Column #)
  nodefault
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform