>>>>doesn't the "LOCAL ARRAY" definition do the same as "DIMENSION"?
>>>
>>>
>>>DIMENSION creates a PRIVATE array.
>>
>>Nope, not always. Consider the following:
>>LOCAL a_anyarray
>>DIMENSION a_anyarray[1]
>>a_anyarray = "Hi there!"
>>DO MyPrg2
>>RETURN
>>
>>* MyPrg2.prg
>>? a_anyarray[1]
>>RETURN
However, take out the LOCAL statement and it is private because its scope hasn't been specified.
>
>
>Right...that's what I was saying.
I just wanted to clarify the point that DIMENSION, in and of itself, doesn't affect the scope of the variable. It seemed to me that could be derived from your post.
George
Ubi caritas et amor, deus ibi est