>>I don't know any problem like that.
>>
>
>Try the following:
>
>PUBLIC aPubArray[2,3]
>aPubArray = 'Foo'
>PRIVATE aPrivArray[2,3]
>aPrivArray = 'Bar'
>? DEMOARRAYERROR(@aPrivArray) && OK
>? DEMOARRAYERROR(@aPubArray) && meltdown
>
>FUNCTION DEMOARRAYERROR
>LPARAMETER aRefArray
>DIMENSION aRefArray[4,2]
>aRefArray = 'Mumble'
>? aRefArray[1,1], aPubArray[1,1]
>RETURN
>
BTW, the problem is that the PUBLIC array loses its PUBLIC scope when passed by ref...
>>Vlad
>>
>>>As I remember, there's a problem passing public arrays by reference in VFP, too. From the standpoint of this discussion, probably not an issue, but certainly an argument against wide use of public arrays .