It should be returning just fine. But to me it looks like you are not storing that value that is returned and using it.


int myInt = myFunction();


Regards,

Chris