Jump to content

Radio Boxes (Urgent!)


Recommended Posts

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

Link to comment
Share on other sites

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