>>Hello Sergey
>>
>>the first fact is well-known :-). But I can't imagine why the ArrayPasser returns the whole array and what does "the whole array" mean... It returns a reference that is in some way other than @lcArray - that is irritating for me.
>
>The whole array" means that a reference to the array is returned not just the first item. VFP only recognize @lcArray as passed by reference when it's used as a parameter.
OK. I understand now. I've previously tried to pass @lcArray as a parameter to another function, which in turn would assign this value to Excel Range.Value. But, of course, this other function assigned not the reference but lcArray itself, what actually meant lcArray(1).
ArrayPasser is a trick to place the "value of reference" to the right to the "=" sign - the only way to assign a reference to a variable in VFP. Do you know any other situations one could need this kind of a function but for arrays?
Thanks!
Alexander