>>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
> keyboard "{leftarrow}"
> keyboard "{dnarrow}"
> keyboard "{leftarrow}"
>endif
>
Yuri
Thanks for the answer - going with Fred's code
Colin
Specialist in Advertising, Marketing, especially Direct Marketing
I run courses in Business Management and Marketing