【问题标题】:Lotus string illegal array bound莲花字符串非法数组绑定
【发布时间】:2022-07-21 18:13:53
【问题描述】:

如果使用号码可以工作

Dim tablelabels(9) As String

但我需要使用变量 [count] ,[count] 是数字,因为没有固定值

 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

非常感谢您的帮助

【问题讨论】:

  • 友情提示:请给 Rob 的答案点赞,并给他“接受”的复选标记,因为这是正确的答案。如果您不知道这意味着什么,请在评论中提问... 点赞和接受 - 复选标记奖励积分。点等于声望。如果您不参与社区的这一部分,那么很快将没有更多的答案给您...

标签: lotus-notes lotus-domino lotusscript lotus


【解决方案1】:

用这个:

Dim tablelabels() As String
ReDim tablelabels(count)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多