Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Skipping over columns in grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00234003
Message ID:
00234007
Views:
22
>The first column in my grid is vendor number. If the user enters an existing vendor I would like to skip the next two columns and move immediatetly to the date field. I have tried several things but the cursor move the the next column forcing the user the press the enter key two extra times.

It depends some on how you want to move them...for just the enter key, you could put code like:
if nkeycode = 13     && Enter key was pressed
  nodefault
  this.parent.parent.columnX.setfocus    && X is whatever column
endif
in the textbox Keypress event
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform