>>I have an option group on a form with 3 options - say "Apples","Oranges","Lemons". When a user steps into the group using the keyboard the first option always gets focus - even though another option may be the one showing the true value in the radio button. How do I get the focus to land on the option that has the true value shown by the radio button? I can't seem to see any property that allows me to do this.
>>
>>At present a user can step through the option group and accidentally change the selected option to the first radio button.
>>
>>I hope that I have explained the problem clearly enough. (A lot easier to demonstrate than to describe!)
>>
>>Thanks
>>Barry Sutton
>
>If you want to disallow users to use tab to change optiongroup value, then you may reset TabStop property for 'extra' optionbuttons, e.g. you can fire this code after you fill/change optiongroup value:
>
>with thisform.myoptiongroup
> for each oButton in .buttons
> if oButton.value=0
> oButton.tabstop=.f.
> else
> oButton.tabstop=.t.
> endif
> endfor
>endwith
>
Edward
Thanks for that - a neat trick!
Barry.