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!

Conditional selection of Radio option 1

Status
Not open for further replies.

TinLegs

Programmer
Jan 14, 2003
100
NZ
I have a C6.1 Legacy app.

Q. I want to select (prime) a certain Radio Option from a group if a certain Check Box is ticked. It can remain selected if the Check Box is un-ticked.

I thought this would be an easy task but it is really testing me.

Thanks.

 
Hi,

the optionbox use a certain variable, for example -> loc:eek:ption BYTE , every radio has an value.
In accepted-embed of checkbox (use variable loc:check BYTE), you can set this variable:

IF loc:check then !checkbox is ticked
loc:eek:ption = 1 !radio-option value 1
ELSE !checkbox is unticked
loc:eek:ption = 2 !radio-option value 2
END
DISPLAY()

cagiv
 
Thank you very much cagiv. I have it working now however if its any help to anyone else further to my question I found that if the check box was unticked, another Radio option selected, then the check box ticked again SELECT() was useful. ie.

IF loc:check then !checkbox is ticked
loc:eek:ption = 1 !radio-option value 1
SELECT(?Radio1)
ELSE !checkbox is unticked
loc:eek:ption = 2 !radio-option value 2
SELECT(?Radio2)
END
DISPLAY()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top