|
-
Aug 26th, 2009, 09:37 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Custom Functions Question
Hi Guys,
I'm just curious, when writing your functions, do you need to put a try/catch in them? or does it not really matter?
thanks guys
Graham
-
Aug 26th, 2009, 09:42 AM
#2
Re: Custom Functions Question
Sometimes I do and if it Catches an error, I have the function return some error value like -1. Otherwise, I let the parent Subroutine that's calling the function trap the error.
-
Aug 26th, 2009, 09:44 AM
#3
Re: Custom Functions Question
 Originally Posted by graham23s
Hi Guys,
I'm just curious, when writing your functions, do you need to put a try/catch in them? or does it not really matter?
thanks guys
Graham
It depends on what the function is doing, and if there is a possibility of it throwing an exception or not.
-
Aug 26th, 2009, 09:47 AM
#4
Thread Starter
Hyperactive Member
Re: Custom Functions Question
ah thanks guys, as a rule of thumb i'll leave them out.
cheers guys
Graham
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|