壹佰网|ERP100 - 企业信息化知识门户

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1403|回复: 2

[Domino C/S开发] 代理运行错误???

[复制链接]
发表于 2005/3/30 09:36:15 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622  。

您需要 登录 才可以下载或查看,没有帐号?注册

x
我写了一个邮件到达后运行的代理,但是在测试运行时,总是提示下图的错误,不知道为什么呀?
我已经知道是"Set doc=uidoc.Document"的错误,但不 知道为什么错误呀?
我的代码如下:
Sub Initialize
        On Error Goto trap
       
        Dim ses As New NotesSession
        Dim db As NotesDatabase
        Dim ws As New NotesUIWorkspace
        Dim uidoc As NotesUIDocument
        Dim doc As NotesDocument
       
        Dim strSendPerson As String
        Dim strSendDate As String
        Dim strSendToPerson As String
        Dim strTitle As String
       
        Set db=ses.CurrentDatabase
       
        Messagebox db.Title
       
        Set uidoc=ws.CurrentDocument       
        Set doc=uidoc.Document
       
        'strTitle=doc.subject
       
        'Messagebox doc.subject, , doc.subject
       
        Exit Sub
trap:
        Error Err,"Error" & "/subname:" & Erl & Error
End Sub
 楼主| 发表于 2005/3/30 09:39:21 | 显示全部楼层
Sub Initialize
        On Error Goto trap
       
        Dim ses As New NotesSession
        Dim db As NotesDatabase
        Dim ws As New NotesUIWorkspace
        Dim uidoc As NotesUIDocument
        Dim doc As NotesDocument
       
        Dim strSendPerson As String
        Dim strSendDate As String
        Dim strSendToPerson As String
        Dim strTitle As String
       
        Set db=ses.CurrentDatabase
       
        Messagebox db.Title
       
        Set uidoc=ws.CurrentDocument
        Set doc=uidoc.Document
       
        'strTitle=doc.subject
       
        'Messagebox doc.subject, , doc.subject
       
        Exit Sub
trap:
        Error Err,"Error" & "/subname:" & Erl & Error
End Sub
以上代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/29 04:54 , Processed in 0.012098 second(s), 14 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表