INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Conditional selection of Radio option

Conditional selection of Radio option

(OP)
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.

RE: Conditional selection of Radio option

Hi,

the optionbox use a certain variable, for example -> loc:option 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:option = 1 !radio-option value 1
ELSE !checkbox is unticked
loc:option = 2 !radio-option value 2
END
DISPLAY()

cagiv

RE: Conditional selection of Radio option

(OP)
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:option = 1 !radio-option value 1
SELECT(?Radio1)
ELSE !checkbox is unticked
loc:option = 2 !radio-option value 2
SELECT(?Radio2)
END
DISPLAY()

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close