Catching return value from stored procedure

Thanks for your idea. It really helped. I got it.