Examples: IsActivatable property (NotesAgent - LotusScript®)

This agent checks the activatable status of an agent.

Sub Initialize
  Dim session As New NotesSession
  Dim db As NotesDatabase
  Dim agent As NotesAgent
  Set db = session.CurrentDatabase
  Set agent = db.GetAgent("Get file path")
  If agent.IsActivatable Then
    Messagebox "Is activatable",, agent.Name
    Messagebox "Is not activatable",, agent.Name
  End If
End Sub