>>>>>Hi,
>>>>>
>>>>>I've run into a strange problem that I can't figure out how to 'fix'.
>>>>>
>>>>>I'm passing an array to a method and then referencing the passed in array in the method.
>>>>>
>>>>>I get this error when compiling the project: 'Unable to find Unkown LAVARARRAY'
>>>>>
>>>>>
>>>>>I'm dimensioning the array like this in the calling method:
>>>>>DIMENSION laVarArray(3,2)
>>>>>
>>>>>The program runs fine, but I get that message on compile. Is there any way to eliminate the error message?
>>>>>
>>>>
>>>>Jim,
>>>>
>>>>Try adding:
>>>>
>>>>EXTERNAL ARRAY laVarArray
>>>>
>>>>George
>>>
>>>George, I found that EXTERNAL ARRAY didn't work in this situation. I had to use either public arrays (Mo's suggestion) or Ed Pikman's "IF .F." methodology. Never figured out why, as EXTERNAL ARRAY was included for just this purpose :-(
>>>
>>>Barbara
>>
>>Barbara,
>>
>>Admittedly, what I'm about to write applies mostly to my experiences with 2.6, but my experience 5.0 has produced similar results. I never have run into an instance where the EXTERNAL ARRAY declaration, as the first line following the parameter list didn't resolve it. Perhaps it has something to do with how the procedure/function is called. I will, however, keep this in mind, hoever. Thanks.
>>
>>George
>
>I've run into a few situations where the 'EXTERNAL ARRAY' didn't work, but I couldn't figure out why. I wondered if it had anything to do with the 'PARAMETERS' statement.
>
>Elyse
I think Jim B. hit it right on the head with both the purpose of the EXTERNAL ARRAY command and the difference between compile time errors and compile time warnings. I don't know if my practice of placing the statement as the first one immediately following the parameter list has anything at all to do with it. What I do know is that I don't seem to get this error (warning, actually), and when I have it was resolved by EXTERNAL ARRAY... It's not I like I don't use a lot of them (passing as parameters) because I do.
George
George
Ubi caritas et amor, deus ibi est