求高手指点
Sub Initialize
On Error GoTo errormsg
Dim curdb As NotesDatabase
Dim Up_number As String,mobile As String,content As string
Dim notedoc As NotesDocument
Dim session As New NotesSession
Dim Agent As NotesAgent
Set agent = session.CurrentAgent
Set curdb=session.Currentdatabase
MsgBox "222222222"
Set notedoc = curdb.GetDocumentByID(agent.ParameterDocID)
MsgBox "333333333333"
Set Sms=New Meipwebserviceserverporttype_n4
'sid=Sms.Login("nfjdejmh", "nfjdejmhgmcc")
Up_number=notedoc.Up_number(0)
mobile=notedoc.mobile(0)
content=notedoc.content(0)
Call notedoc.Remove(true)
Call SmsApproval(Up_number,mobile,content) 'content Y+同意,N+不同意
Exit sub
errormsg:
MsgBox "SmsApprovalJava Error:" & Str(Erl) & " " & Error
End Sub
为什么我执行到Set notedoc = curdb.GetDocumentByID(agent.ParameterDocID)时,执行不下去而报有“Invalid Note id”这个错呢