jruelan Posted October 9, 2007 Share Posted October 9, 2007 (edited) i declared a Global $ctr variable initialized to 1 and used it inside a function. Inside this function, i made a loop incrementing the $ctr variable. After the loop, I tested the value of $ctr and the value is null or blank or empty. Could this be a bug? Because i also tried using $ctrTest variable within the same function with the loop, $ctrTest obtained the correct value while $ctr is still blank...tnx... i tested the value by having a message box inside the OnAutoItExit function. tnx very much Edited October 9, 2007 by jruelan Link to comment Share on other sites More sharing options...
jruelan Posted October 9, 2007 Author Share Posted October 9, 2007 ok, i saw in the autoit help file that using for-to-step makes the variable local, sorry my fault... tnx anyway... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now