I am using Notes 8.5.1. I have made changes to a Lotus Notes agent that uses severalScript Libraries defined in my Database. I made changes to one of the libraries and have
been unable to get a clean save/compile since. I commented out the Use “EmailLibrary” statement
and the calls to all functions/subroutines defined in that library. Saved and compiled using the Tools → Recompile All LotusScript. The library and agent compiled without errors. I then added the Use “EmailLibrary” statement back in to the options section of the agent, save/closed, recompiled All. The library and agent compiled without errors. I then added back in the reference to one of the functions and it gives the error “Variable not declared: GETTEAMROOMNAME” even though the agent reference and library function name is actually mixed case “GetTeamRoomName”. I even tried the
entire process again after changing both references to all upper case (commenting out all references, recompiling, add in the ibrary, recompile, uncomment the function reference) and still am getting the same “Variable not declared: GETTEAMROOMNAME” error.
When I uncomment the line and highlight the ‘GetTeamRoomName’ text on the line a pop shows me a reference to the EmailLibrary but it still will not resolve the reference during compilation.
SendReminder agent
(Options)
Option Public
Option Declare
Use "EmailLibrary"
......
(Declarations)
Dim TeamRoomName As String
Sub Initialize
....
TeamRoomName = GetTeamRoomName(db)
....
End Sub
Script Library
EmailLibrary
Function GETTEAMROOMNAME(Db As notesdatabase) As String
Dim TeamView As NotesView
Dim TeamDoc As NotesDocument
Set TeamView=Db.GetView(“MissionLookup”)
Set TeamDoc= TeamView.GetFirstDocument
If Not (TeamDoc Is Nothing) Then
GetTeamRoomName = TeamDoc.TeamName(0)
Else
GetTeamRoomName = ""
End If
End Function