S
STIL
В строке с о смайликом
Sub Postopen(Source As Notesuidocument)
Dim ws As New NotesUIWorkspace
Dim db As NotesDatabase
Dim s As New NotesSession
Dim uidoc As NotesUIDocument
Dim notecollection As NotesDocument
Dim note As NotesDocument
Dim collection As NotesDocumentCollection
Dim f As String
Set db=s.CurrentDatabase
Set uidoc=ws.CurrentDocument
Set note=uidoc.Document
searchFormula$={Form="N"}
Set collection=db.Search(searchFormula$, Nothing,0)
Set notecollection=collection.GetFirstDocument
Do Until notecollection Is Nothing
If note.Znumber(0)="" Then
Set note.Znumber(0)=notecollection.Number(0)
Set notecollection.Number=notecollection.Number(0)+1
End If
Loop
Call notecollection.Save(True, False,True)
Call note.Save(True, False,True)
ws.ViewRefresh
End Sub
Sub Postopen(Source As Notesuidocument)
Dim ws As New NotesUIWorkspace
Dim db As NotesDatabase
Dim s As New NotesSession
Dim uidoc As NotesUIDocument
Dim notecollection As NotesDocument
Dim note As NotesDocument
Dim collection As NotesDocumentCollection
Dim f As String
Set db=s.CurrentDatabase
Set uidoc=ws.CurrentDocument
Set note=uidoc.Document
searchFormula$={Form="N"}
Set collection=db.Search(searchFormula$, Nothing,0)
Set notecollection=collection.GetFirstDocument
Do Until notecollection Is Nothing
If note.Znumber(0)="" Then
Set note.Znumber(0)=notecollection.Number(0)
Set notecollection.Number=notecollection.Number(0)+1
End If
Loop
Call notecollection.Save(True, False,True)
Call note.Save(True, False,True)
ws.ViewRefresh
End Sub