Код:
Sub Initialize
Dim ns As New NotesSession
Dim db As NotesDatabase
Dim viewk As NotesView
Dim viewu As NotesView
Dim dock As NotesDocument
Dim docu As NotesDocument
Dim dc As NotesDocumentCollection
Dim i As Integer
Set db=ns.CurrentDatabase
Set viewk=db.GetView("Текущие клиенты")
Set viewu=db.GetView("Текущие клиенты\Обновление БД")
Set dock=viewk.GetFirstDocument
i=1
While Not (dock Is Nothing)
Set dc=viewu.GetAllDocumentsByKey(dock.AgentShortName(0))
Set docu=dc.GetNthDocument(i)
Call docu.ReplaceItemValue("UpdateManagerKodeks", dock.AgentUpdateManager(0))
Call docu.ReplaceItemValue("UpdateManagerTE", dock.AgentUpdateManagerStroy(0))
Call docu.ReplaceItemValue("UpdateManagerAros", dock.AgentUpdateManagerAros(0))
Call docu.ReplaceItemValue("UpdateManagerAdept", dock.AgentUpdateManagerAdept(0))
Print Cstr(i)+" "+dock.AgentShortName(0)+" "+Cstr(dc.Count)
Set dock=viewk.GetNextDocument(dock)
i=i+1
Wend
End Sub
на этой строчке "Call docu.ReplaceItemValue("UpdateManagerKodeks", dock.AgentUpdateManager(0))" такая ошибка "Object variable not set"