That's because the compiler doesn't know that the reference in the called method is an array. You need to add an [tt]EXTERNAL ARRAY[/tt] command in the called method. See the Help topic for [tt]EXTERNAL[/tt] for more information.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Notice: Even when you address arrays with square brackets, the compiler thinks of it as the name of a function, because square brackets are universal as array element index brackets, string delimiters and also delimit function parameters just like normal brackets: [tt]? version[1] , abs[-3][/tt]
Thus the compiler doesn't know you mean an array name and looks for a function.
At the top of the function using the passed in array put the EXTERNAL declaration and the compiler will notice and not put this on the errors list.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.