racerrunner Posted July 10, 2006 Posted July 10, 2006 Hi all, Can we write a procedure in AUTOIT3? I have repeated code in my program. Was wondering whether it is possible to write a procedure to make the program modular? If i use FUNC, must i add a return statement. Because the repeated which i write doesnt return value? Please assist. Thank you
Moderators SmOke_N Posted July 10, 2006 Moderators Posted July 10, 2006 There's no need for a "must" have return value... Most make their functions Return 1 for success and Return 0 for failure, but it's your choice. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
ivan Posted July 12, 2006 Posted July 12, 2006 I'm working on an automated installer for a mobile phone and sets it up exactly as I need it on different environments, and it wasn't until now that I really appreciate the benefit for error tracking in recursive functions. It's always a good practice to be able to track what went on at which point, it'll help you identify and avoid bugs. IVAN Think out of the boxGrabber: Yet another WinInfo tool_CSVLib (still alpha)Dynamic html in au3
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