Burgs Posted May 26, 2008 Share Posted May 26, 2008 Greetings, This should be an easy question. I'm getting a "Variable used without being declared" error. I know what that means, but I don't know what the variable is or where to declare it. I'm just declaring variables on the first line of the script, don't know if that is OK or not. Where is the error output so I can see what the variable is that is causing the problem(s)? Thank you. Link to comment Share on other sites More sharing options...
monoceres Posted May 26, 2008 Share Posted May 26, 2008 Greetings, This should be an easy question. I'm getting a "Variable used without being declared" error. I know what that means, but I don't know what the variable is or where to declare it. I'm just declaring variables on the first line of the script, don't know if that is OK or not. Where is the error output so I can see what the variable is that is causing the problem(s)? Thank you.If you run the script in SciTe you can double click on the error in the console to jump right to the error Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Developers Jos Posted May 26, 2008 Developers Share Posted May 26, 2008 You get this error when running the Compiled version of the script ? Try running the source and you will get more information. 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 More sharing options...
Burgs Posted May 26, 2008 Author Share Posted May 26, 2008 Thank you. It seems it is a string causing the trouble, how are strings properly declared, I see info in the help for variables (Dim) but not strings...? Link to comment Share on other sites More sharing options...
monoceres Posted May 26, 2008 Share Posted May 26, 2008 (edited) Thank you. It seems it is a string causing the trouble, how are strings properly declared, I see info in the help for variables (Dim) but not strings...?A variable in autoit is a variant which means that it can hold almost everything Declaring a string is no different than declaring a int.So Dim, Local or Global will do just fine Edited May 26, 2008 by monoceres Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Jos07 Posted May 26, 2008 Share Posted May 26, 2008 can you show what are you doing with your code ? Always Keep Your Sig Small... Like me :D Link to comment Share on other sites More sharing options...
Burgs Posted May 26, 2008 Author Share Posted May 26, 2008 (edited) Thank you. The Dim seems to correct it. Edited May 26, 2008 by Burgs 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