lotusnotes常用代码.docVIP

  • 7
  • 0
  • 约1.11万字
  • 约 11页
  • 2017-06-12 发布于北京
  • 举报
lotus notes常用代码 lotusnotes常用代码 1.检测当前用户是不是文档的创建者,如果不是,不允许编辑文档。 Sub Querymodechange(Source As Notesuidocument, Continue As Variant) Dim session As New NotesSession Dim doc As notesdocument Dim userName As New NotesName(session.UserName) Set doc=source.document If Not ( source.EditMode ) Then If ( doc.authors(0) = username.CANONICAL ) Then continue=True Else Msgbox \您不是此文档的创建人,不可以修改!\,0,\文档数据库\ continue=False End If End If End Sub 2.退出时检测关键的域不能为空 Sub Click(Source As Button) Dim w As New notesuiworkspace Dim uidoc As notesuidocument Dim doc As notesdocument Set uidoc=w.currentdo

文档评论(0)

1亿VIP精品文档

相关文档