Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving within a grid
Message
From
28/09/2002 21:10:10
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
28/09/2002 18:16:50
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00705617
Message ID:
00705623
Views:
8
>I have a form where a text box first in the tab order. Then comes a grid, and finally 4 more text boxes. The grid has 4 columns where the first three are disabled and read only. I want the user to enter a value in the initial text box, and then into each row in the 4th column in the grid, and then finally in the last text boxes.
>
>The cursor starts in the first text box fine. When the field is filled or enter is pressed, the cursor goes to the forth column, first row of the grid. When that field is complete, I want the cursor to jump to the forth field in the next row if the grid. Is there some property that I can set to cause that to happen. Also, when the final row of the grid is filled, I want the enter key to place the cursor on the text box that is next in the tab order.
>
>Any help will be greatly appreciated.

On last column's textbox.keypress :
if !mdown() and nKeyCode = 13
 skip
 if eof()
   thisform.myOtherTextBox.Setfocus()
 endif
endif
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform