Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP Radio Buttons

Status
Not open for further replies.

linousa

IS-IT--Management
Mar 8, 2013
79
US
Any idea why this construct dosn't work?
Code:
If Thisform.optiongroup1.Value = 1
     Thisform.optiongroup2.Value = 2
Endif
 
On it's face without other context, this should work to change the selection. What are you experiencing?
 
That exact code is working for me, on VFP9sp2. I don't call a refresh, but have you tried that?
 
VFP9SP2. Created a new form from scratch and it worked![banghead] Now will be checking why it doesn't in my app... Thank you.
 
Glad I could help, even if I didn't do anything. ;)

I'm assuming the second option group has a button count of 2 or higher and your code is in an event that is actually firing. I put the code in the click event of a button but there are plenty of other events I could have used which might not have fired as I'd have expected them to depending on other moving parts.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top