Originally Posted by
Norm
The compiler wants the method to return a value for all cases when the if condition is true AND when it is false. The posted code does not return a value when the if condition is false. Add a return statement.
Aha! Thanks Norm. You've helped me multiple times, I really appreciate your dedication to this great forum.
--- Update ---
Originally Posted by
Junky
Giving a method and a variable the same name can only lead to confusion.
Agreed, I'll keep that in mind. Although seeing how small my code is, it isn't that big of a deal