Jump to content

Is a bug ?


xap
 Share

Recommended Posts

  • Developers

No Bug.

Remarks

The Variable will be created automatically with a LOCAL scope, even when MustDeclareVars is on.

Edited by Jos

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

Link to comment
Share on other sites

  • Developers

first the I wasnt declared as anything. second you didnt add $i = $i + 1 in your loop.

Are you sure ?

The for..next loop will add 1 to the variable and there is a Global statement in the OP's post.

anyway, my previous post gave the answer to the issue and to fix the code:

Global $I
go()
;
Func go()
    For $I = 1 To 4
        sub($I)
    Next
EndFunc   ;==>go
;
Func sub($i)
    ConsoleWrite($I)
EndFunc   ;==>sub
Edited by Jos

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

Link to comment
Share on other sites

  • Developers

didnt see your post when i started typing :blink: you wrote your post when i was writing mine ;)

That wasn't my point. The point is that you make two statements in your answer that are simply wrong. :P

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

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