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.

'Declaration
Const MB_YESNO= 4
Const MB_ICONQUESTION = 32
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_YESNO+MB_ICONQUESTION+
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.

This was first published in April 2004

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • 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 ...

SearchEnterpriseLinux

SearchDataCenter

SearchExchange

SearchContentManagement

Close