How share a variable between to functions?

Hi Yusuf,

It seems to me that this answer will help you. You may also have a look at this