Avoid closing Notes client

This tip gives code to prevent the closing of the Notes client by users.

Editor's Note: This feature will reportedly be included in ND7.

Sometimes it can be helpful to control the Notes client if a user really wants to close it. To do this you can easily change the Queryclose event in the Bookmark.nsf database or you can change your own homepage on the Queryclose event (normally you should choose the Main page to do this). The script is very short.

Const MB_YESNO= 4
Const MB_DEFBUTTON2 = 256
Const IDYES = 6
Const IDNO = 7

Sub Queryclose(Source As 
Notesuidocument, Continue As Variant)
 yesno = Messagebox ("Do you 
really want exit ?",
MB_DEFBUTTON2,"Close Notes")
 If yesno = IDYES Then continue = True
  Else continue = False
End Sub

Do you have comments on this tip? Let us know.

Dig Deeper on Lotus Notes 7

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...