Raised This Month: $ Target: $400
 0% 

209 error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 12-19-2013 , 14:24   Re: 209 error
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
. . . a "warning" is not an error. The warning is saying that if you return a value explicitly in any part of the function, you must then make sure to return a value explicitly for every possible execution of the code. This usually requires returning at the end of the function but it can also be an indication of a bad formulation for the function.

Also, I just noticed that you are returning inside the loop so it will stop the function after the first execution of the loop.
Ahh that was it! Moving the return fixed the warning. (edited above) Good catch.
__________________

Last edited by joshknifer; 12-19-2013 at 14:29.
joshknifer is offline
Send a message via Skype™ to joshknifer
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode