Hi,I have the same codes written in Lotus Scripts run by Action button, but if I put the codes in Script library, I got the error message of “Can’t close current program”,
If I put the codes in an agent, and call it by the action button, I do not have any error, it works, anybody know why?
This is part of codes which has this message:
Dim uidatabase As NotesUIDatabase
Set uidatabase = ws.CurrentDatabase
Call ws.settargetframe("Main")
Call uidatabase.OpenView(tmpResultFolder)
Call ws.SetTargetFrame("_blank")
Subject: Lotus Noes warning “Can’t close current program”
you are trying to put something in the frame from which you are running this bit of script so you are trying to close the current program. When you are doing it in an agent it is not running in the frame
Subject: RE: Lotus Noes warning “Can’t close current program”
Hi Marjan,Thanks a lot for the help,
Yes, probably that is the reason.
So if that is the case, we can only code it in agent, not in the library, but the reason I put it in library is that I have 3 similar buttons, so it easy maintain if I can code it in libarary.