You would have to either make it a global to alter contents in another function or use list that only holds that one variable. Lists are automatically passed by ref.
I hope this helps.