in reply to Re^4: Return a valuein thread Return a value
Please read the answer you already got. It is the correct answer and solves your problem.