你好,我在LotusScript中有如下的二维数组。LotusScript ans二维数组&订阅输出或范围错误
Counter = 0
While Not (ProcessingViewDoc Is Nothing)
Redim Preserve AllRecrods(Counter,0)
AllRecrods(Counter,0) = ProcessingViewDoc.Test1(0)
Redim Preserve AllRecrods(Counter,1)
AllRecrods(Counter,1) = ProcessingViewDoc.Test2(0)
Redim Preserve AllRecrods(Counter,2)
Set ProcessingViewDoc = ProcessingView.GetNextDocument(ProcessingViewDoc)
Counter = Counter +1
Wend
当它处理下一个文档时,它会到达计数器1和第二个文档,它会使我的错误订阅超出范围。 这是数组的全局声明。
Dim AllRecrods() As Variant
下面是第二次循环时出现错误的行。
Redim Preserve AllRecrods(Counter,0)
感谢你们俩:) – hdc