Advertisement
imjyb1008work

DWFBinderGetDocumentList Sample

Jun 20th, 2014
566
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sub Initialize
  2.  On Error Goto Errhandle
  3.  Dim doc As Notesdocument
  4.  Dim col As Notesdocumentcollection
  5.  Dim binder As Variant
  6.  Dim session As Notessession
  7.  
  8.  Set session = New Notessession
  9.  Set col = session.currentdatabase.unprocesseddocuments
  10.  
  11.  Set doc = col.GetFirstDocument
  12.  Binder = DWFBinderGetDocumentList(doc)
  13.  
  14.  Forall b In Binder
  15.   If Ucase(b.CoverDocOS(0)) = "YES" Then
  16.    Messagebox "Cover document"
  17.   Elseif Ucase(b.MainDocOS(0)) = "YES" Then
  18.    Messagebox "Maindocument, Subject: " + b.subject(0)
  19.   Else
  20.    Messagebox "other Binderdocument, Subject: " + b.subject(0)
  21.   End If
  22.  End Forall
  23.  
  24. Terminate:
  25.  Exit Sub
  26. Errhandle:
  27.  Msgbox Error & " (" & Trim(Str(Err)) & ")", 16,"Error in customer code"
  28.  Resume Terminate
  29.  
  30. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement