>I still get the error even with EXTERNAL ARRAY.
>
>>
>>If you're really doing something like this, you're likely to hurt yourself with all sorts of potential side-effects.
>
>What do you mean? Are you referring to passing arrays a parameters in general?
>
No, trying to do file manipulations in a UDF run inside a SQL Select.
>Anyway, is there any explaination for why this happens?
No, but some avenues to explore might be that the parameter was not an array, or that a function or procedure visible to the program also shared the name parray, and VFP had trouble with the name as a result. Does renaming the parameter in the UDF have any effect?