Sign in to follow this  
Followers 0
SlimShady

Check the state of a radio buton

2 posts in this topic

#1 ·  Posted (edited)

I would like to see an example of how to check the state of a radio button.

Don't tell me to look in the help file ofcourse I did.

But it has no examples of how to check the state of a radio button.

If there's more than one way to do this please post examples of the other ways too.

In the meanwhile I'll do my best to figure it out myself.

Thank you.

Edited by SlimShady

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

$radio1 = guisetcontrol("radio","My Radio",-1,0)

.

.

.other corresponding code

.

.

If guiread($radio1)=1 Then

msgbox(0,"","Radio1 is Checked!")

ElseIf guiread($radio1)=4 Then

msgbox(0,"","Radio1 is Unchecked!")

EndIf

The If ElseIf give you the Idea on how to check the radio.

1 for checked and 4 for unchecked.

Edited by Triton

Triton

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0