I have an optiongroup with two options, "Yes" and "No", to be used in response to some question, and I want to hide or show other controls depending on the selection. I use the interactive method of the optiongroup to carry out the appropriate action,
eg if this.value=1 then somecontrol.visible=.T. else somecontrol.visible=.f.
After clicking on one option or the other the interactivechange method is actioned, but the bullet remains on the wrong option. The optiongroup control then seems to lock up, and can't be changed thereafter. Oddly, if I suspend at the start of the interactive change method and then step through the code in the trace window (or even then just 'resume'), it all works perfectly. If I remove or comment out the interactivechange code, then the bullet switches back and forth as expected. If I put it back, it goes wrong again.
Refreshing the form (or page if its in a pageframe), or simply refreshing the control makes no difference.
This does not happen with every optiongroup in the application, just some. I'm going mad trying to figure it out - can anyone point me in the right direction?
eg if this.value=1 then somecontrol.visible=.T. else somecontrol.visible=.f.
After clicking on one option or the other the interactivechange method is actioned, but the bullet remains on the wrong option. The optiongroup control then seems to lock up, and can't be changed thereafter. Oddly, if I suspend at the start of the interactive change method and then step through the code in the trace window (or even then just 'resume'), it all works perfectly. If I remove or comment out the interactivechange code, then the bullet switches back and forth as expected. If I put it back, it goes wrong again.
Refreshing the form (or page if its in a pageframe), or simply refreshing the control makes no difference.
This does not happen with every optiongroup in the application, just some. I'm going mad trying to figure it out - can anyone point me in the right direction?