Is this a good way of getting out of a function?
This is in code that I'm taking over and finishing and I'm just wondering if I should be skeptical of this logic. The programmer seemed to overly-use "Exit Function" (like right before an exception handler would be called as if he thought if he didn't have it he'd fall right through into the exception handler even when there was no exception).Code:If f1.AppendLine(strTextMsg, strText) = True Then Return True Exit Function Else Return False Exit Function End If
Personally, I would've just coded: Return(f1.AppendLine(strTextMsg, strText))
Thanks.




Reply With Quote