Lotus string illegal array bound

69 Views Asked by At

If use number can work

Dim tablelabels(9) As String

But I need use variable [count] ,[count] is number,because there is no fixed value

 Dim tablelabels(count) As String   <----
        n=0
        While Not (doc Is Nothing)
            tablelabels(n) = doc.GetItemValue ("Reply")(0)
            n=n+1
            Set doc = view.GetNextDocument (doc)
        Wend

Thanks a lot for help

1

There are 1 best solutions below

0
Rob Mason On BEST ANSWER

Use this:

Dim tablelabels() As String
ReDim tablelabels(count)