Domino Code Fragment

Code Name*
ProgramName property
Date*
04/29/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.3.138.122.195
Description*
This agent prints the program name.
Type*
Java
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
import lotus.notes.*;


public class programnameagent extends AgentBase
{
 public void NotesMain()
 {
   try
   {
     Session s = getSession();
     Log log = s.createLog("Program name file");
     log.openFileLog("progname.log");
     System.out.println
     ("Program name = \"" + log.getProgramName() + "\"");
   }
   catch (Exception e)
   {
     e.printStackTrace();
   }
 }
}