Jump to content

Clearing a group of radio buttons


Recommended Posts

For $a = 0 To Ubound($RPANH) -1
    GUICtrlSetData($RPANH[$a], $GUI_UNCHECKED)
Next

Am I doing something stupid? I have 4 radios in a group, I have 8 of these groups. So for example:

$Choice1[8]

$Choice2[8]

$Choice3[8]

$Choice4[8]

Group1 contains $Choice1[0], $Choice2[0], $Choice3[0], $Choice4[0]

Group2... etc.

I'm sure as valik would tell me "Use your brain, this is idiodic code"

But I just want to here those reassuring words before I dive into an array of headaches (pun intended, get it?)

children may smile; the wise ponder- Dr. Holmes of Hardvard Medical School on an Ether BingeLove Makes The World Go Round?So does five shots of tequila. What's your point?[quote name='Valik' date='Jun 5 2008, 05:13 PM']wraithdu, 24 hours. Said I have a bad attitude, just driving the point home with a ban.[/quote]This is classic. :)
Link to comment
Share on other sites

If you want to change the checked/unchecked state of the radio button, use GuiCtrlSetState(), not GuiCtrlSetData().

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

If you want to change the checked/unchecked state of the radio button, use GuiCtrlSetState(), not GuiCtrlSetData().

:)

DUH!! See.. I told you it was a stupid question. I was also clearing input boxes and combo boxes, hence the Data.. Why can't i think logically - I feel like Smoke's sig.. I should step away from the computer and do everyone a favor :P

children may smile; the wise ponder- Dr. Holmes of Hardvard Medical School on an Ether BingeLove Makes The World Go Round?So does five shots of tequila. What's your point?[quote name='Valik' date='Jun 5 2008, 05:13 PM']wraithdu, 24 hours. Said I have a bad attitude, just driving the point home with a ban.[/quote]This is classic. :)
Link to comment
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
 Share

  • Recently Browsing   0 members

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