Sub Click(Source As Button)
Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.CurrentDatabase
If IsArray(db.Agents) Then
Forall a In db.Agents
Messagebox( a.Name )
End Forall
End If
End Sub
Dim session As New NotesSession
Dim db As NotesDatabase
Dim agent As NotesAgent
Set db = session.CurrentDatabase
If Not IsEmpty(db.Agents) Then
Forall a In db.Agents
If ( a.Name = "Periodic Archive" ) Then
Set agent = a
End If
End Forall
End Forall