Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing arrays to Excel
Message
 
To
27/07/1999 20:05:31
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00246945
Message ID:
00246958
Views:
22
Hi Erik,

>>I would like to call the Excel SubTotal method thru a VFP ActiveX Automation call.
>>
>>I understand how to pass all the parameters the method is looking for except one that is an array of the column numbers to subtotal on.
>>
>>Can anyone suggest how to pass arrays from VFP to Excel that I can use for this purpose?
>>
>>Thanks!
>
>Does not passing the array by reference work?
>
>exPression.SubTotal(nGroupBy, nFunction, @laTotalList)

Well, I get an OLE error when I tried that:
DIMENSION laArray[1]
laArray[1] = 14
loSheet.ActiveSheet.Subtotal(5, xlsum, @laArray, 1, 0, 1)

Can you see anything wrong with that?

Thanks!
Vern
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform