Which VFP version you're using?
In VFP6 and earlier I would do:
local array myArray[1]
lnElements=myFunction(@myArray)
myFunction
lparameter taArray
external array taArray
dimension taArray[5,10] - redimension it
........
return myNewNumber
In VFP7 function can return an array and you don't have to declare it before call of the function.
>Hi everybody,
>
>I try to do the following :
>
>Local MyVariable
>MyVariable = MyFunction()
>
>
>MyFunction will return an array, but I don't know how much items there will be in my array. Am I better to use an object for that or there is a way to do it the way I try to do it ?
>
>Thanks in advance !
If it's not broken, fix it until it is.
My Blog