Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ENTER (if you dare!!!)
Message
From
11/10/2006 11:46:59
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01161171
Message ID:
01161225
Views:
12
This message has been marked as a message which has helped to the initial question of the thread.
>Hello Gurus!
>
>Thanks for the help yesterday! You guys (and ladies!) are great!
>
>Now, onto todays question.
>
>I have some data entry objects on a form... don't we all???
>
>In particular, I have a textbox, where as the user types in a string of data, EACH character is intercepted by a KEYPRESS event and analyzed.
>
>If it is a character, it is added to the string and used to FILTER a grid above the textbox, so the user can see in realtime a filterd look at the data (and it is FAST too....).
>
>OK... now we want to allow the user to JUMP directly to the grid (so they can move through the rows and select the ones they want to work with) IF they type in an ENTER key at the end of the string. Right now, it doesn't jump up there, even if I intercept the ENTER key (char 32) and do a SETFOCUS on the grid.
>
>The txtbox is named txtDrugFilter
>and the grid is called grdPrescriptions
>
>Any ideas? Thanks in advance!!
>
>Tommy (and Karen)

you allow to pass ENTER into the class's keypress,
and set
grid.TabOrder = textbox.Taborder-1
or put NODEFAULT into the Keypress procedure ( not into a called subroutine )
* keypress
 if parameters=(13,0)
 nodefault
 grid.setfocus
Previous
Reply
Map
View

Click here to load this message in the networking platform