If you store all your variables in an array you can pass that to a function. It's not elegant, but it's one way of doing it.
But out of curiosity why would you need Gosub? I haven't used that since around 1994.
But out of curiosity why would you need Gosub? I haven't used that since around 1994.