Sub Click(Source As Button)
If Not(doc.ReviewMember(0) = session.UserName) Then
res = Msgbox("You are not the checker. Are you sure to end the check up?" , 1+48, "Check")
If res = 2 Then Exit Sub
End If
CODE:
Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
Set ws = New NotesUIWorkspace
Set uidoc = ws.CurrentDocument
Set doc = uiDoc.Document
If ( doc.DocStatus(0) = "Enforce" ) Or ( doc.DocStatus(0) = "Old" )Then
If Not ( uiDoc.EditMode ) Then
If Not doc.HasItem("Action") Then
Messagebox "This document already has been issue. You can not edit"
continue = False
Else
End If
End If
End If
End Sub作者: huangjian2004 时间: 2006-08-17 16:45 标题: 高手! 这网站上高手多吗?作者: clockmaker 时间: 2006-08-19 20:16
在程序中加入错误处理:
on error goto catch