HighTechTalks DotNet Forums  

Passing nested VBA arrays to C#

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Passing nested VBA arrays to C# in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
paul.mallett@gmail.com
 
Posts: n/a

Default Passing nested VBA arrays to C# - 05-25-2007 , 06:46 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.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.