Lotus Software logo
IBM Lotus Domino Designer 8.5
  Versions 8.5 and 8.5.1






Examples: Log property

This example parses a rich text item from a document and displays parsing error from the log.

Sub Initialize


On Error Goto errh

Dim session As New NotesSession
Dim domParser As NotesDOMParser
Dim doc As NotesDocument
Set doc = session.DocumentContext
Dim item As NotesRichTextItem
Set item = doc.GetFirstItem ("Body")

Set domParser = session.CreateDOMParser(item)
domParser.ExitOnFirstFatalError = True
domParser.Process

Msgbox "Parsing completed."
Exit Sub

errh:
Msgbox domParser.log
End Sub
Related topics
Log property
ExitOnFirstFatalError property




Library | Support | Terms of use |

Last updated: Monday, October 5, 2009