Please read the answer you already got. It is the correct answer and solves your problem.
In reply to Re^5: Return a value by Corion in thread Return a value by bhushanQA