Examples: AvailableNames property

This button gets the names looked up in the directory. 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("")
End Sub

Sub Click(Source As Button)
	Dim msg As String
	If directory.AvailableNames(0) <> "" Then
		Forall item In directory.AvailableNames
			msg = msg & item & |
|
		End Forall
	Else
		msg = "No names available"
	End If
	Msgbox msg,, "Available names"
End Sub