Sub Postopen(Source As Notesuidatabase)
Dim Session As New NotesSession
Dim Person_Doc As NotesDocument
Dim PubNames_DB As NotesDatabase
Dim Users_View As NotesView
Dim Temp_NN As NotesName
Dim UserName_Str As String
Dim Server_str As String
Server_Str = Session.CurrentDatabase.Server
If Server_Str = "" Then Exit Sub
Set Temp_NN = New NotesName(Server_Str)
Set PubNames_DB = New Notesdatabase (Temp_NN.Abbreviated,"Names.nsf")
If PubNames_DB Is Nothing Then Exit Sub
Set Users_View = PubNames_DB.GetView("($Users)")
If Users_View Is Nothing Then Exit Sub
UserName_Str = Session.Username
Set Person_Doc = Users_View.GetDocumentByKey(UserName_Str,True)
If Person_Doc Is Nothing Then Exit Sub
If Person_Doc.NotesClientVersion(0) = Session.NotesVersion Then Exit Sub
Person_Doc.NotesClientVersion = Session.NotesVersion
Call Person_Doc.Save(True,False)
End Sub
This was first published in July 2001