How to locate parent and child document

can somebody give me a clue how to use lotus script to locate the parent and child document?I mean is there any lotus script class I can use? child document is “response” to the parent document.

thanks.

Subject: how to locate parent and child document

Here is how you can do it from an action button

CLick(Source as Button)

Dim ws as New NotesUiWorkspace

Dim uidoc as notesUiDocument

Dim session as New NotesSession

Dim db as NotesDatabase

Dim doc As Notesdocument

Dim responseCollection as NotesDocumentCollection

Dim responseDoc As NotesDocument

Set db=session.CurrentDatabase

Set uidoc=ws.CurrentDocument

Set doc=uidoc.Document

Set responseCollection = doc.Responses

For i = 1 to responseCollection.Count

Set doc=responseCollection.GetNthDoucument(i)

'edit doc

'save doc

Next

End sub

Cheers Tim