Anonymouse Posted June 29, 2008 Share Posted June 29, 2008 (edited) I would like to error handle an entire function that happens to be 1000+ lines. Is this possible, or do I have to set error handling for each and every part? I just want a simple msgbox that tells them to read the helpfile I did try to put it in the case statement, then at the end of the function, and the beginning : No Dice. Edited June 29, 2008 by Anonymouse children may smile; the wise ponder- Dr. Holmes of Hardvard Medical School on an Ether BingeLove Makes The World Go Round?So does five shots of tequila. What's your point?[quote name='Valik' date='Jun 5 2008, 05:13 PM']wraithdu, 24 hours. Said I have a bad attitude, just driving the point home with a ban.[/quote]This is classic. :) Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 29, 2008 Moderators Share Posted June 29, 2008 I would like to error handle an entire function that happens to be 1000+ lines. Is this possible, or do I have to set error handling for each and every part? I just want a simple msgbox that tells them to read the helpfile I did try to put it in the case statement, then at the end of the function, and the beginning : No Dice.1. A 1000 line function? (Ever thought of breaking it up into mini functions for easier handling and possibly error checking?)2. What you're asking is impossible to answer, as there is nothing to go off of. The only answer is... Yes, you can error check the function. 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. Link to comment Share on other sites More sharing options...
Anonymouse Posted June 29, 2008 Author Share Posted June 29, 2008 1. A 1000 line function? (Ever thought of breaking it up into mini functions for easier handling and possibly error checking?)2. What you're asking is impossible to answer, as there is nothing to go off of. The only answer is... Yes, you can error check the function.Well, it's only 1000+ lines because I was having a horrific time with arrays and decided to just copy/paste ->edit what I already wrote as a smaller version. So it's the same lines over and over with different variables. I know.. I'm going to buy a Trigg book as soon as possible. I would show you the code, but I'm actually rather embarrassed that it took me 3100 lines to write something that would have only taken you 1000. heh.I'll figure it out eventually, I guess I'll mess around with it a bit now and research Event Handling. Thanks, Smoke. children may smile; the wise ponder- Dr. Holmes of Hardvard Medical School on an Ether BingeLove Makes The World Go Round?So does five shots of tequila. What's your point?[quote name='Valik' date='Jun 5 2008, 05:13 PM']wraithdu, 24 hours. Said I have a bad attitude, just driving the point home with a ban.[/quote]This is classic. :) 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