例: IsPublicWriter property

次のスクリプトは、特定のエントリがこのデータベースのパブリック文書を作成できるかどうかを調べます。

Sub Queryopen(Source As Notesuidocument, _
Mode As Integer, Isnewdoc As Variant, _
Continue As Variant)
  Dim session As New NotesSession
  Dim db As NotesDatabase
  Dim acl As NotesACL
  Dim entry As NotesACLEntry
  Set db = session.CurrentDatabase
  Set acl = db.acl
  Set entry = acl.GetEntry("Mary Bugs/East/ACME")
  If entry.IsPublicWriter Then
    Messagebox entry.Name & " is a public writer."
  Else
    Messagebox entry.Name & " is not a public writer."
  End If
End Sub