Have a main sub code and then call another subroutine.
All variables have been defined in the main code.
However when using the variable in the subroutine I get an error that the variable has not been defined.
How can I make sure that variables don't need to be defined in subroutines - but only be declared in main code.
All variables have been defined in the main code.
However when using the variable in the subroutine I get an error that the variable has not been defined.
How can I make sure that variables don't need to be defined in subroutines - but only be declared in main code.