免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2506 | 回复: 1
打印 上一主题 下一主题

[Lotus] Error:Subscript out of range(请教) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-03-17 14:03 |只看该作者 |倒序浏览
用一个对话对表单插入记录.得到错误:Subscript out of range.请问下面的代码那里有错.谢谢!    



Dim workspace As New NotesUIWorkspace
        Dim doc As NotesDocument
        Dim uidoc As NotesUIDocument
        Dim box As String
        Dim details As String
        Dim index As Integer     
        Set uidoc = workspace.CurrentDocument
        Set doc = uidoc.Document
        box = "AddTestMethod"
        Print box
       
       
        If Not(workspace.CurrentDocument.EditMode) Then workspace.CurrentDocument.EditMode = True
             'Clear the dialog box fields
        Call ClearFields(doc)
        If workspace.DialogBox(box, True, True, False, False, False, False, box) Then
               
               
                Print "Refresh"
                doc.Action = "Add"
               
          'Set the array size
                If doc.num_1(0) = "" Then
                        index = Ubound(doc.num_1)
                Else
                        index = Ubound(doc.num_1) + 1
                End If      
               
                If doc.tmpDelta_1(0) = "" Then
                        Msgbox "Test item requires input value.", 0 + 16, "No  record added"
                        Call ClearFields(doc)
                        Exit Sub
                End If
               
                If doc.tmpHue_1(0) = "" Then
                        Msgbox "Referenced Standard requires input value.", 0 + 16, "No record added"
                        Call ClearFields(doc)
                        Exit Sub
                End If
               
               
               
          'Add the Summary Fields for check details
                Call SummaryFields(doc, index)
                Call uidoc.reload
                Call uidoc.Refresh
               
        Else 'User pressed Cancel button from the Add Check Item dialog box
                Print "No Refresh"
            'Clear the dialog box fields
                Call ClearFields(doc)
                Call uidoc.reload
                Call uidoc.Refresh
        End If

论坛徽章:
0
2 [报告]
发表于 2005-03-24 14:30 |只看该作者

Error:Subscript out of range(请教)

跟踪一下,看在那行出的错阿!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP