Thanks, that worked. :)
>>Sorry if this one is really easy. I have a UDF and I want to return 2 values. Is it possible to return an array from a function?
>
>You can pass an array by reference, e.g.
>dimension myArray[2]
>**********************
>?myUDF(@myArray)
>
>Function myUDF
>lparameter taArray
>external array taArray
>taArray[1]=...
>...
>return .t.