Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help!!!! Setting column and row focus in grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01294755
Message ID:
01294787
Views:
16
>Hi
>
>I have 10 columns in a grid - a button sets my focus at row 1 column 9 - after completing column 9 the cursor moves to colum 10
>
>Afer column 10 I want to set the focus to row 2 column 9 etc
>
>How do I do this?
>
>Thanks
>
>Colin

Depending on your grid configuration you may try to add in the Column10.Text1.LostFocus a piece of code for appropriate key strokes, like:
set confirm off
if lastkey()=13   && user may hit arrow keys, so handle it differently if needed
	keyboard "{leftarrow}"
	keyboard "{dnarrow}"
	keyboard "{leftarrow}"
endif
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform