Examples: UseContextServer property
This button toggles the use of the context server for lookups. The form that contains this button contains other buttons that do lookups.
Dim session As NotesSession
Dim directory As NotesDirectory
Sub Initialize
Set session = New NotesSession
Set directory = session.GetDirectory("myserver/Acme")
End Sub
Sub Click(Source As Button)
Dim msg As String
If directory.UseContextServer Then
directory.UseContextServer = False
msg = "Designated server being used"
Else
directory.UseContextServer = True
msg = "Context server being used"
End If
Msgbox msg,, "Server changed"
End Sub