Jump to content

Recommended Posts

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
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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...