Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Option Group question
Message
From
01/02/2007 14:36:04
 
 
To
01/02/2007 13:30:14
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01191265
Message ID:
01191563
Views:
13
>>>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:
* See which button should initially receive focus.
WITH this.opgSowMethod
	FOR EACH button IN .Buttons
		IF button.Value=1
			button.SetFocus()
		ENDIF 
	ENDFOR 
ENDWITH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform