Jump to content
zemkor

How to properly use variables?

Recommended Posts

zemkor

Hello, i have another question. 

I have inputbox $N1... $N50

How to use variables ?  My solution not working, Thanks for answer.

 

For $i = 1 To 50 Step +1
$x =  $N & $i
$y =  $S & $i

If GUICtrlRead($x) = "" Then
Else
GUICtrlSetState($y, $GUI_CHECKED)

 

Share this post


Link to post
Share on other sites
zemkor

Hello, i have another question. 

I have inputbox $N1... $N50

How to use variables ?  My solution not working, Thanks for answer.

 

For $i = 1 To 50 Step +1
$x =  $N & $i
$y =  $S & $i

If GUICtrlRead($x) = "" Then
Else
GUICtrlSetState($y, $GUI_CHECKED)

 

Share this post


Link to post
Share on other sites
Jos

Use an Array for holding your GUICtrl input handles and read them in your loop.

Not sure what the $y values is supposed to be.

For $i = 1 To 50 Step +1
    If GUICtrlRead($hGui[x]) = "" Then
    Else
        GUICtrlSetState($y, $GUI_CHECKED)
    EndIf
Next

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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

×