Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Putting values in more than one excel-cell at a time
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01301740
Message ID:
01302244
Views:
15
>>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
Alexander Lerner
a_lerner@heinrich-schmid.de

The life is somewhat easier than it seems to be.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform