>>>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
>>
>>Barry,
>>Use a container. Put the optiongroup in container.
>>
>>*Container gotfocus
>>WITH this.optFruits
>> .Buttons(max(.Value,1)).SetFocus()
>>endwith
>>
Cetin
>
>Hi Cetin
>I can see what your method is trying to do, but I am having a problem as the reference to .Value refers back to the value of this.optFruits rather than the .Buttons collection maximum value. I can't work out the syntax to get to the maximum value of the .Buttons.value - if you see what I mean?
>Barry
No I don't:)
It is not trying to get maximum value of Buttons. It's just doing a max(currentvalue,1) in case value is 0.
Cetin