SUMMARY
If a function called in one module exists in a different module and the
calling module does not contain a Declare statement for that function, you
can get one of the following error messages:
- Subscript out of range
- Type mismatch
- Array not defined
This is because without the Declare statement, Basic thinks that you are
implicitly declaring an array. Because Basic defines 11 elements implicitly
in an array, your program may pass over the function without producing an
error message. This can happen if you pass one numeric argument between 0
and 10.
To work around this problem, put a Declare for each function in the module
where the function is called.