LOTUSSCRIPT/COM/OLE CLASSES


Examples: LastExitStatus property
This agent script checks the last exit status of the current agent and prints a message in the status bar.

Sub Initialize
 Dim session As New NotesSession
 If ( session.LastExitStatus = 0 ) Then
   Print ( "Agent exited gracefully last time" )
 Else
   Print ( "Agent raised an error last time" )
 End If
End Sub

See Also