Quote Originally Posted by vcdebugger View Post
declare those variables as global variables outside your functions one time... and use them in your function
There may be no reason to do this, and then you will just have the added problem of managing global state. We need more info from the OP.