例: MakeResponse method

次のスクリプトは、ビューの第 2 番目の文書を第 1 番目の文書の返答文書にします。また、ユーザーインターフェースで返答文書として表示されるように、第 2 番目の文書の Form アイテムを変更します。

Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim docA As NotesDocument
Dim docB As NotesDocument
Set db = session.CurrentDatabase
Set view = db.GetView( "All documents" )
Set docA = view.GetFirstDocument
Set docB = view.GetNextDocument( docA )
Call docB.MakeResponse( docA )
docB.Form = "Response"
Call docB.Save( True, True )