zemkor

How to properly use variables?

4 posts in this topic

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



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

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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

#4 ·  Posted (edited)

Please stop double posting the same question in separate topics.

Will be merged.

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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