因此,我在 Lotus Domino 数据库中有一个视图(对象名称为“视图”),我想从中获取列名并将它们放入数组中:
Dim view As Domino.NotesView
Set view = db.GetView(viewScen)
//viewScen is a string containing the actual view's name
//db is a string containing the actual db name
这些声明工作正常,但是当我尝试使用名为“getColumnNames”的方法将这些值分配给数组时,VBA 编辑器告诉我该对象不支持该方法:
Dim someArray() As String
//I tried both of the following with no sucess...
someArray = view.getColumnNames
someArray() = view.getColumnNames
我究竟做错了什么?