SlimShady 1 Posted June 2, 2004 Share Posted June 2, 2004 (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 June 2, 2004 by SlimShady Link to post Share on other sites
Triton 0 Posted June 2, 2004 Share Posted June 2, 2004 (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 June 2, 2004 by Triton Triton Link to post Share on other sites
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now