Access VBA equivalent to a C# List

后端 未结 2 1108
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-16 07:36

I have a COM-visible object written in C# that accepts a list of string arrays. Could I send a Collection of string arrays from Access 2000 to this object and it work? If no

相关标签:
2条回答
  • 2020-12-16 07:54

    You can't marshal generics but using Collection on the VB6 side is a workable solution. Effectively convert your List to a standard collection.

    Here's something that elaborates more: http://www.codeproject.com/KB/COM/netclasslistvb6.aspx?display=Print

    0 讨论(0)
  • 2020-12-16 08:03

    I do a lot of com add in work on VBA and vb.net - I find replacing a List (of T) in vb.net with an arraylist works very well in VBA, not all the properties expose exactly the same way in Access, but you can work around it.

    0 讨论(0)
提交回复
热议问题