Jump to content

ControlClick acting differently?


 Share

Recommended Posts

Hello,

in an external textfile i can look for certain info for A.
If A exists in this textfile, then i'm looking up a number.
If A does not exists, an inputbox opens, so the user must enter that number.
After this, the correct radiobutton is clicked(/checked) via ControlClick, but when A does exists and the value could be looked up, the ControlClick is acting like GUICtrlSetState($someradiobutton,$GUI_CHECKED) and certain values are not loaded because of that.
I know i can check the state of a radiobutton by using BitAND(...), but i would like to know why ControlClick acts differently in this situation.

My code:
If $icansearchinexternalfile=1 Then   ;if i can look for A in the external file
      $inputbox=StringMid($textfile[$line],2,3)   ;line in textfile is 'A100'
Else   ;if i can not look for A in database
     $inputbox=InputBox("Alter","Please enter the number:","","",150,123)
EndIf
;the found or entered number = 100
If $inputbox="100" Then
     ControlClick("","",$someradiobutton)
EndIf

Looking forward to a reply.

Kind regards, Jurgen

Edited by smack
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...