Manage Learn to apply best practices and optimize your operations.

Count Attachments In Open Document

When counting attachments in an open document via script I encountered problems
using NotesEmbeddedObject. I solved it by using Evaluate.
This example gives a message if there are more than one attachment in the
document.

Dim doc As NotesDocument
Dim uidoc As NotesUIDocument
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDOcument
Set uidoc=ws.CurrentDocument
Set doc = uidoc.Document

NotesMacro$="@Attachments"
count_attachments=Evaluate(NotesMacro$,doc)
If count_attachments(0)>"1" Then
Messagebox "Use only one attachment!"
End If

Dig Deeper on Lotus Notes Domino Administration Tools

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close