nested group in Names & Address Book.
Function GetMembersinGroup(GroupName As String) As Variant
Dim session As New NotesSession
Dim db As New NotesDatabase("Servernamet", "Names.NSF")
Dim doc As NotesDocument
Dim view As NotesView
Set view=Db.GetView("($VIMGroups)")
Set doc=View.GetDocumentByKey(GroupName)
Redim tmpMembers(1) As Variant
J=0
If Not(doc Is Nothing) Then
tmpGroupName1=Doc.GetItemValue("Members")
GroupLowerBound1= Lbound(tmpGroupNam1)
GroupUpperBound1= Ubound(tmpGroupName1)
For i=GroupLowerBound1 To GroupUpperBound1
tmpGroupName2= GetMembersinGroup(tmpGroupName1(i))
GroupLowerBound2= Lbound(tmpGroupName2)
GroupUpperBound2= Ubound(tmpGroupName2)
Redim Preserve tmpMembers(GroupUpperBound2+J) As Variant
For K= GroupLowerBound2 To GroupUpperBound2
tmpMembers(J) = tmpGroupName2(K)
J=J+1
Next
Next
Else
Redim tmpMembers(0) As Variant
tmpMembers(0) = GroupName
End If
GetMembersinGroup= tmpMembers
End Function
This was first published in November 2000