[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.interop

Passing nested VBA arrays to C#

paul.mallett

5/25/2007 10:46:00 AM

Hi,

Is it possible to pass a nested VBA variant array to C# over COM?

Ie.

varData(1) = "Hello"
varData(2) = "World"

varPass(1) = varData
varPass(2) = varData

This gives you an array which looks like varPass()().

Is there a type in C# which will accept this data structure when
passed to it from VBA? Presently I can't seem to find one which
works.

Thanks.