if you define a new function, e.g.
function On "test"
then you want to add some local variables. However you try and add them, they always come out as global variables. Very frustrating.
How do you add local variables to a function?
I have seen how you can add them to a sub-event, but that's too late, I need to defined them before any of the sub events trigger, as they are set in the action of the function definition (i.e. used before they are defined!)