>I am going to put three controls in one column of a grid. One is text
>I have made following piece of program, however, it turns out that the
>'control right' is passed from combo1, combo2 then
>reached text1 without giving chaces for huam action. How can I have the
>'control' stay on a particular control, and how can
>I give it away to other controls?
>
>
>IF ITEM="ITEM2"
>THIS.COLUMNS(2).CURRENTCONTROL="COMBO1"
>THIS.COLUMNS(2).COMBO1.SETFOCUS
>THIS.COLUMNS(2).CURRENTCONTROL="COMBO2"
>THIS.COLUMNS(2).COMBO2.SETFOCUS
>THIS.COLUMNS(2).CURRENTCONTROL="TEXT1"
>THIS.COLUMNS(2).TEXT1.SETFOCUS
>ENDIF
>
>THISFORM.REFRESH()
As I can see, you are getting exactly what you have written in code. :)
It switches between controls because you told it to do so.
After combo1 gets focus, you have switch the focus to combo2 in one of
the combo1 events like combo1.LostFocus() for example.
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison