Feng Wan 5.Apr.10 06:37 PM a Web browser Applications Development7.0.3Solaris
Very strange...I create a very simple test hidden agent, test.
Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.CurrentDatabase
Print db.FileName,, db.Title
And when the following code calls the agent, it bombed:
Set agent = db.GetAgent("(test)")
If agent.RunOnServer() = 0 Then
Messagebox "agent run successfully"
Else
Messagebox "Agent failed ", MB_OK + MB_ICONINFORMATION, "Message"
Exit Sub
End If
If I write the agent using Java, Formula, or Simple Action. It works just fine.