>>>Hi Barry,
>>>
>>>this code might do it for you in the gotfocus of the container:
>>>
>>>
>>>WITH this.optiongroup1
>>> FOR EACH button IN .Buttons
>>> IF button.Caption = .Value
>>> button.SetFocus()
>>> ENDIF
>>> ENDFOR
>>>ENDWITH
>>>
>
>Barry,
>You better use == instead of =. Otherwise you need to be sure say PageFrame comes after Page.
>Cetin
Cetin,
Believe it or not I found the problem you refer to as I had two options - one named "Seed" and one named "Seedling" and it tripped up!
So, in fact I have used the following, which gets around the problem:
WITH this.opgSowMethod
FOR EACH button IN .Buttons
IF button.Value=1
button.SetFocus()
ENDIF
ENDFOR
ENDWITH