Jump to content
Sign in to follow this  
unknown12

Radio Boxes (Urgent!)

Recommended Posts

unknown12

Hello,

i am trying to make yet another application.

For some reason this won't work and i don't know why.

It dosn't only execute for the selected box, it executes it all nomatter what the selection.

if $socket_a Then
            if $256k Then
            $clock = GuiCtrlRead($clockspeed)
            $rating = 1437*$clock
            GuiCtrlSetData($amdrating,$rating)
            EndIf
        EndIf
        if $socket_a Then
            if $512k Then
            $clock = GuiCtrlRead($clockspeed)
            $rating = 1454*$clock
            GuiCtrlSetData($amdrating,$rating)
            EndIf
        EndIf
        if $socket_a Then
            if $1mb Then
            msgbox(0,"AMDRating","There are no 1MB Cache Athlon XPs")
            EndIf
        EndIf

Please help ASAP

thanks

Share this post


Link to post
Share on other sites
SlimShady

Here's another way.

if $socket_a Then
            If $256k Then
               $clock = GuiCtrlRead($clockspeed)
               $rating = 1437*$clock
               GuiCtrlSetData($amdrating,$rating)
            ElseIf $512k Then
               $clock = GuiCtrlRead($clockspeed)
               $rating = 1454*$clock
               GuiCtrlSetData($amdrating,$rating)
            ElseIf $1mb Then
               msgbox(0,"AMDRating","There are no 1MB Cache Athlon XPs")
            EndIf
        EndIf

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  

×